单机无敌简单赌博软件(21)
嗯新手回归作,有不全之处见谅。one = 0
import random
while True:
num = random.randint(1,13)
num = one + num
temp = input('你要不要牌:')
while '要' != temp and '不要' != temp:
temp = input('输入错误,请再输入一次吧:')
if temp == '要':
if num > 21:
print('你爆了\n' + str(num))
break
print(num)
one = num
else:
print(one)
break
页:
[1]