import randomsecret = random.randint(1,20)print('---自己测试---')temp = input('guess the number:')guess = int(temp)while guess != secret:if guess > secret:print('too big')else:print('too small')temp = input('try again:')guess = int(temp)if guess == secret: print('bingo') print('game over')
添加回答
举报
0/150
提交
取消