string.sort(), sorted(), reverse, set(), list slice,list comprehension
一些小结 :The sort()method changes the ordering of lists in-place.直接修改list顺序的方法.>>> l=[1,2,3,2,3,4,1]>>> l.sort()>>> print(l)[1, 1, 2, 2, 3, 3, 4]...