python 字典排序问题 #value排序 dict1=sorted(dict1.items(),key=lambda x:x[1],reverse=True) #key排序 dict1=sorted(dict1.items(),key=lambda x:x[0],reverse=True)