暮色呼如
12345678910111213141516num = 10 y = 'false'while y == 'false': ans = input('请输入数字:') if int(ans) == num: ans = 'ture' break elif int(ans) > num: print('small') ans = 'false' else: print('big') ans = 'false' 可以这样写