摘要: test_dict = { "a": 21, "c": 3, "g": 56, "b": 34, "j": 12, } sorted_items = sorted(test_dict.items(), key=lambda item: item[1], reverse=True) # reverse 阅读全文
posted @ 2024-10-18 10:54 二月雪 阅读(6) 评论(0) 推荐(0) 编辑