#/usr/bin/env python
#-*-conding:utf-8-*-
#猜age游戏
Shinyboy1 = 21
while True:
guess_age = int(input("Please input age :"))
if guess_age == Shinyboy1:
print("ok ,very good!")
elif guess_age > Shinyboy1:
print("think smaller...")
else:
print("think bigger...")
原文:http://www.cnblogs.com/yangxu01/p/6081802.html