import random
secret = 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')
GCT1015
jeck猫
相关分类