如果是list,有max(list)也可以自己写排序算法,比如冒泡排序a=[3,4,2,6,3]for i in range(0,len(a)): for j in range(i+1,len(a)): first=int(a[i]) second=int(a[j]) if first