第26764题 单选题
有关自定义SORTED函数的Python代码,下列说法错误的是?

有关下列Python代码的说法,错误的是()。

#自定义函数SORTED()仿Python的sorted()功能
def SORTED(for_in_data, fx = None, Reverse = False):
    lst = list(for_in_data)
    if fx == None:
        lst.sort(reverse = Reverse)
    else:
        lst.sort(key = lambda x:fx(x), reverse = Reverse)
    return lst
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析