print("You can't win this game") #你不可能赢这个游戏
n = int(input("Between 1 and 10 type a number(integer)")) #在1到10之间写一个数字(整数)
print("Your answer isn't integer or not between 1 and 10,this game is over.") #你的回答不是整数或者1到10之间的一个数字(整数)
while True:
n = input("我现在心里想的啥?")
print("猜错咯")
try:
ln = []
for i in range(99):
n = int(input("Between 1 and 99 choose a number"))
if n == 100:
break
ln.append(n)
except:
print("Your answer isn't integer,this game is over.")
print("At last...")
print(ln)
print("Your answer have not 100!!!")
print("this game is over.")
猜猜猜
最新推荐文章于 2023-07-20 10:20:38 发布