'''
功能:猜数游戏
作者:文雅兰
日期:2021年11月26日
'''
import random
while True:
target = random.randint(1, 100)
x = int(input("Try to guess the number i'm think of:"))
while True:
if x > target:
x = int(input("TOO high!Guess again:"))
elif x < target:
x = int(input("TOO low! Guess again:"))
else:
break
print('That‘s it!Thanks for playing.')