Python IDEL中输入help(sorted)后返回如下帮助文档 Help on built-in function sorted in module builtins: sorted(iterable, /, *, key=None, reverse=False) Return a new list containing all items from the iterable in ascending order. A custom key function can be supplied to customize the sort order, and the reverse flag can be set to request the result in descending order. 如list1是列表,那么sorted(list1)的结果和以下那一项肯定是完全相同的
A.
sorted(list1,key=None, reverse=False)
B.
sorted(list1,key=None, reverse=True)
C.
sorted(list1,key=func1, reverse=False)
D.
sorted(list1,reverse=True)