Files
python/pythonProject/内置函数/sort.py
T

4 lines
99 B
Python
Raw Normal View History

2026-10-09 10:15:36 +08:00
a= [11,9,8,4,5,6,7,8,1,2]
a.sort(reverse=True)
print(a)
# 仅支持对list排序,会修改原list