<reponame>python20180319howmework/homework<filename>zhangqi/20180402/6.py
#6. 有这样一个字典d = {"chaoqian":87, “caoxu”:90, “caohuan”:98, “wuhan”:82, “zhijia”:89}
#   1)将以上字典按成绩排名 

d = {"chaoqian":87,"caoxu":90,"caohua":98,"wuhan":82,"zhijia":89,}
print(sorted(d.items(),  key = lambda i :i[1],reverse = True))
		














#6. 有这样一个字典d = {"chaoqian":87, “caoxu”:90, “caohuan”:98, “wuhan”:82, “zhijia”:89}
#   1)将以上字典按成绩排名 

d = {"chaoqian":87,"caoxu":90,"caohua":98,"wuhan":82,"zhijia":89,}
print(sorted(d.items(),  key = lambda i :i[1],reverse = True))
#6. 有这样一个字典d = {"chaoqian":87, “caoxu”:90, “caohuan”:98, “wuhan”:82, “zhijia”:89} #   1)将以上字典按成绩排名