python中使用有序字典: import collection dic = collections.OrderedDict() dic['0'] = 'hello' dic['A'] = 'world'