Python——保持字典的有序性
from random import randintfrom collections import OrderedDictfrom time import timeordered_dict = OrderedDict()players = list('ABCDEFGHI')start_second = time()for i in range(9) : input() p = players.pop(randint(0, 8-i)) end_second = time() print