下面的Python 代码执行后将输出[1, -2, 3, -4]。 lst = [1, 3, -2, -4] lst.sort(key=lambda x: abs(x)) print(lst)
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析