>>> a.sort() >>> a [1, 2, 3, 4, 5] >>> a=[1,"abc",2,"xxx"] >>> a.sort() >>> a [1, 2, 'abc', 'xxx'] L.sort(func) 把func(x,y)作为排序函数,返回-1,0和+1