#Python 3.6(32-bit)
from random import *
z = randint(0,9) #生成从0到9的随机数
t=0
while t!=-1:
n = eval(input("please input a number between 0~9:"))
t=t+1
if n<z: #判断随机生成数字的大小
print("sorry,it's too less")
continue
elif n>z: #判断随机生成数字的大小
print("sorry,it's too large")
continue
else:
print("after {:} times,you got it".format(t))
break