老师布置的作业,谁也不知道答案猜数游资
from random import randint
num=randint(22,122)
print('Guess what i think?')
bingo=False
while bingo == False:
answer=int(input('请输入数值:'))
if answer<num:
print('too small')
if answer>num:
print('too big')
if answer==num:
print('bingo')
bingo=True