li.sort() #默认从小到大 li.sort(reverse=True) #从大小到 li.reverse() #反转列表 转载于:https://www.cnblogs.com/ShanCe/p/9303936.html