Python学习之路Day1:guess

guess.py

age_of_oldboy = 56
count = 0
while count < 3:
guess_age = int(input("guess age:"))
if guess_age == age_of_oldboy :
print("yes,you got it.")
elif guess_age > age_of_oldboy:
print("think smaller...")
else:
print("think bigger!")
count += 1
else:
print("you have tried too many times... fuck off")
-------------------------------------------------------------
原文地址:https://www.cnblogs.com/xiaobai005/p/7685867.html