OrderedDict

OrderedDict 字典排序:

 a = {1:2, 0: 3}
OrderedDict(sorted(a.items(), reverse=True))

你可能感兴趣的:(OrderedDict)