---------------------------------sorted----------------------------------------
In [14]: help(list.sort)
Help on built-in function sort:
sort(...) method of builtins.list instance
L.sort(key=None, reverse=False) -> None -- stable sort *IN PLACE*
--------------------------------sorted---------------------------------------
In [15]: 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.
升序返回一个新的列表包含所有项目的迭代。
可以提供自定义key函数以自定义排序顺序,可以设置反向标志以按降序返回结果。