num=random.randrange(0,10)
guess=input('请输入你猜的数字')
count=0
while True:
if(eval(guess)>num):
print(' Too Big')
count+=1
guess=input('请继续猜:')
elif (eval(guess)<num):
print(' Too Small!')
count+=1
guess=input('请继续猜:')
else:
print('恭喜你猜对了!')
count+=1
break
print('你共猜了%d次'%count)