nl = [1,2,5,3,5] nl.append(4) nl.insert(0,7) nl.sort() print nl 升序排序 sort() 降序排序list.sort(reverse=True)