首页 > 代码库 > 03.猜数字

03.猜数字

#!/usr/bin/env python
#coding:utf8
#Author:Felix zheng

age_of_felix = 32
guess_age = input("guess age:")

if guess_age == age_of_felix:
    print("yes,you got it.")
elif guess_age > age_of_felix:
    print("think smaller!")
else:
    print("think bigger!")

  

03.猜数字