有序字典可以按字典中元素的插入顺序来输出。
参考 https://www.cnblogs.com/lowmanisbusy/p/10257360.html
import collections
my_order_dict = collections.OrderedDict()
my_order_dict["name"] = "lowman"
my_order_dict["age"] = 45
my_order_dict["money"] = 998
my_order_dict["hourse"] = None
for key, value in my_order_dict.items():
print(key, value)
输出
name lowman
age 45
money 998
hourse None
标签:key,Python,45,dict,OrderdDict,my,order,字典
From: https://www.cnblogs.com/lycnight/p/17558710.html