摘要: count_dict = { 'b': 2, 'h': 2, 'c': 5, 'e': 4, 'w': 3, 'q': 3, 'a': 7, } #按value从小到大排序 a = sorted(count_dict.items(), key=lambda x: x[1]) #按value从大到小排 阅读全文
posted @ 2019-01-20 15:30 泽翰 阅读(3046) 评论(0) 推荐(0) 编辑