标签:pytho sam user aml saml while got count python
my_age = 30
count = 0
while count < 3:
user_input = int(input("input your guess number:"))
if user_input == my_age:
print("good job,you got it!")
break
elif user_input > my_age:
print("no no no try samller")
else:
print("no no no try bigger")
count += 1
else:
print("对你无语,拜拜!")
标签:pytho sam user aml saml while got count python
原文地址:http://www.cnblogs.com/mrpengfei/p/6649163.html