while True:
my_price=float(input('输入您的价格:'))
if(my_price>100):
print('你输入大了,请重新输入')
elif(my_price<100):
print('你输入小了,请重新输入')
else:
print('输入正确!')
break
python猜价格小游戏
最新推荐文章于 2023-03-09 22:14:39 发布