初始python
2020-12-13 02:03
标签:int put 提醒 ber 游戏 current 数字 else print 1.猜数字游戏,三次后提醒是否继续 初始python 标签:int put 提醒 ber 游戏 current 数字 else print 原文地址:https://www.cnblogs.com/evan0925/p/11025395.htmlcurrent_num = 33
count=0
while True:
if count>=3:
print("是否继续?yorYorNor n")
answer=input("y or n")
if answer in (‘Y‘,‘y‘):
count=0
continue
else:
break
x=input("input a number:")
x= int(x)
if x>current_num:
print("猜大了,请继续:")
elif x
下一篇:Jquery实现异步上传图片