猜年龄
def guess_age():
age_of_princal = 65;
print("猜年龄的游戏开始啦!输入'退出',游戏结束!")
print("请猜猜刘德华的年龄>>")
while True:
guess_age = input()
if guess_age == "退出":
break
elif int(guess_age) == age_of_princal:
print("猜对啦!")
break
elif int(guess_age) > age_of_princal:
print("猜大了,继续试一试")
else:
print("猜小啦!继续猜!")