列表排序
修改原列表
a.sort() #升序
a.sort(reverse = True) #降序排序
random() #打乱排序
建新列表的排序
sorted()
>>> a=[10, 20, 30, 25]
>>> id(a)
2623824047112
>>> a =sorted(a)
>>> id(a)
2623823873160
>>> a
[10, 20, 25, 30]
>>>
reversed()
max(a)
min(a)
sum(a)