排序 a = [2, 3, 1] a.sort(reverse=True) print(a) # [3, 2, 1] 没有排序 a = [2, 3, 1] a.reverse() print(a) # [1, 3, 2]