我想知道如何退货
cardn
回到
__init___
我的程序的一部分,我可以继续。这是在课堂上。
'''the dealing'''
while card_count != 2:
deal = random.randint(1,13)
self.card_check(deal)
print(cardn)
card_count += 1
def card_check(self, card):
if card == 1:
cardn = "Ace"
elif card == 11:
cardn = "Jack"
elif card == 12:
cardn = "Queen"
elif card == 13:
cardn = "King"
return cardn
我想要的只是卡的名称。