notes
work
import random
number =random.randint(1,10)
print(number)
while True:
user = int(input('请输入数字:'))
if user == number:
print ('正确')
break
elif user < number:
print ('小了,继续猜')
else:
print('大了,继续猜')
height = 1
while height < 190:
user = int(input('请输入你的身高:'))
if user >= 190:
print ('恭喜!您的身高满足篮球运动员的要求')
break
else:
print ('很遗憾,您的身高未达到篮球运动员的最低要求')
标签:11,24,19,random,number,int,user,print,身高
From: https://blog.csdn.net/weixin_73170213/article/details/144005840