📜  随机选择字典python代码示例

📅  最后修改于: 2022-03-11 14:46:38.576000             🧑  作者: Mango

代码示例2
deck = {
    'King':10,
    'Queen':10,
    'Valete':10}

random.choice(list(deck.keys()))