我有一本字典是这样说的:
a = {'first': 1, 'second': 2, 'third': 3}
现在,当我打印时,它会以非常随机的顺序打印。而我需要它来始终保留订单。我怎样才能在Python中做到这一点?
python dictionary
dictionary ×1
python ×1