import random
cards = {"Ace" : (1, 11), "numberedCard" : random.randint(2, 10), "Jack" : 11, "Queen" : 12, "King" : 13}
playerDeck = [random.choice(list(cards.keys())), random.choice(list(cards.keys()))]
print("You have been dealt a", playerDeck[0], "and a", playerDeck[1])
total = playerDeck[0] + playerDeck[1]
print("Your total is:", total)
那么我如何获得为总制作指定的 A、K、Q、J 的数字
一只萌萌小番薯
相关分类