import random
secret=random.randint(1,99)
guess=0
tries=0
print("你好,我有一个猜数游戏。")
print("范围在1-99之间,你只有十次机会!")
while guess !=secret and tries<10:
guess=int(input("你要猜什么数?"))
if guesssecret:
print("太大了!")
tries=tries+1
if guess==secret:
print("对了!你赢了!")
else:
print("不对哦!机会用光了哟!")
print("答案是:",secret)
print("下次再见!")