Python sorted()排序
dict 排序from operator import itemgetterdicts = {"key1": "1", "key2": "2", "key3": "3"}sorted_dict = sorted(phone_book.items(), key=itemgetter(1))print(dict(sorted_dict))# [('key1', '1'), ('ke