# 默认 为从小到大 , reverse=False list = [[a,1],[a,2]] list.sort(key=lambda x:float(x[1]), reverse=True) print(list) [[a,2],[a,1]]