def parsing_get_action_list(response, tips=False):
    """
    功能：解析动作表的返回内容，获取动作表。
    输入：
    response：dev->pc的反应内容。
    返回：
    cmd：解析得到的动作表，数据格式为list。
    """
    if response == b'':
        print('回应内容为空，请重新获取回应！')
        return
    poffset = 0
    total_len = len(response)
    cmd_len = response[2]
    cmd_type = response[3]
    action_list = []
    if cmd_type != 2:
        print('命令类型错误，请检查命令内容！当前命令类型为%d' % cmd_type)
        return 0
    poffset = response.index(b'\xfb\xbf', poffset + 1)
    cmd_len = response[poffset + 2]
    cmd_type = response[poffset + 3]
    while cmd_type == 128:
        action_name = bytes.decode(response[poffset + 4:poffset + cmd_len -
            1], encoding='gbk')
        action_list.append(action_name)
        poffset = response.index(b'\xfb\xbf', poffset + 1)
        cmd_len = response[poffset + 2]
        cmd_type = response[poffset + 3]
    if cmd_type != 129 or response[poffset + 4] != 0:
        print('获取动作表失败！请重新获取动作表，当前动作表数据最后一组命令类型为%d' % cmd_type)
        return 0
    if tips:
        print('获得动作表如下：\n%s' % action_list)
    return action_list
