from collections import OrderedDict
p = OrderedDict()
创建一个有序的字典,详细请参考https://www.cnblogs.com/yymn/p/8119559.html