代码拉取完成,页面将自动刷新
NUMBER_OF_CARDS = 52
import random
# Pick a card
number = random.randint(0, NUMBER_OF_CARDS - 1)
print("The card you picked is", end = " ")
if number % 13 == 0:
print("Ace of ", end = "")
elif number % 13 == 10:
print("Jack of ", end = "")
elif number % 13 == 11:
print("Queen of ", end = "")
elif number % 13 == 12:
print("King of ", end = "")
else:
print(number % 13, "of ", end = "")
if number // 13 == 0:
print("Clubs")
elif number // 13 == 1:
print("Diamonds")
elif number // 13 == 2:
println("Hearts")
elif number // 13 == 3:
print("Spades")
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。