摘要: x = {1: 2, 3: 4, 4: 3, 2: 1, 0: 0} sorted = sorted(x.iteritems(), key=lambda x: x[1], reverse=True) import operator;sorted = sorted(x.iteritems(), key 阅读全文
posted @ 2018-06-20 11:17 jhc888007 阅读(190) 评论(0) 推荐(0) 编辑