弱智python小游戏猜数字

from random import randint
num = randint(0,100)
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

posted @ 2016-03-09 14:57  brady-wang  阅读(240)  评论(0编辑  收藏  举报