2.4 如何根据字典中值得大小,对字典中的项排序

{'lile':79,'jim':88}

z2 = sorted(dict.items(),key=lambda x:x[1])
posted @ 2017-02-16 11:46  邹文强  阅读(109)  评论(0编辑  收藏  举报