import random
random.randrange(0,100)
num = (random)
num = str(num)
time = 0
while time < 9:
nums = input("请输入数值:")
nums = str(nums)
if num < nums:
print("大了,请重新输入:")
else:
print("小于,请重新输入")
time = time + 1
if nums == num and time == 4:
print("你的表现很优秀,游戏结束")
elif nums == num and 5 < time < 8:
print("你的表现很还可以,游戏结束")
elif nums != num and time == 8:
print("你的表现很差,游戏结束")
break