while count < 3:
guess_age=int(input("guess age:"))
if old_boy_age == guess_age:
break
print("yes you got it")
elif old_boy_age > guess_age:
print("think smalier")
else:
print("think bigger")
count += 1
else:
print("you have tried too many ")
for i in range(0,10):
if i <3:
print("loop",i)
else:
continue ####是的作用是将语句往回转不调用到下一行
print("hehe...")
guess 玩
old_boy_age = 65
count = 0
#for i in range (3):
while count < 3:
guess_age=int(input("guess age:"))
if old_boy_age == guess_age:
print("yes you got it")
break
elif old_boy_age > guess_age:
print("think smalier")
else:
print("think bigger")
count += 1
if count == 3:
countine_confirm = input("do you want to keep guessing..?")
if countine_confirm != 'n':
count=0
else:
print("you have tried too many ... fuck of")