list.sort()和sorted的区别: a=list(range(10)) a.sort()表示对a列表进行排序,但是返回值是none sorted(a) 对a列表进行排序,但是返回值是排序完的列表