Date1

#Author:Brill
count = 0
age = 56
while count < 3:
guess_age = int(input("please guess age :"))
if guess_age == age:
print("You got it !")
break
elif guess_age > age:
print("Please think it smaller!")
else:
print("Please tkink it bigger !")
count += 1
if count == 3:
print("Ok,It's over!")
print("Do you want to try it again:?")
confirm_it = input("Yes or No:")
if confirm_it != "No":
count = 0
print("Come on ,you can do it !" )
else:
print("Thank you !")
你只管努力,其他的交给天意~
原文地址:https://www.cnblogs.com/genghenggao/p/9018470.html