#guessNumber.py(猜数字.py)
import random
i = 0
j = random.randint(1,10)
k = 1
while j!=i:
i = int(input('请输入数字:'))
if i==j:
print('你猜对了,猜了{}次'.format(k))
else:
if i<j:
print('太小了')
else:
print('太大了')
k+=1