标签:style bre lse while oldboy guess ant conf bsp
1 oldboyage = 56 2 count = 0 3 while count < 3: 4 age = int(input("guess age:")) 5 if age == oldboyage : 6 print("yes you got it.") 7 break 8 elif age > oldboyage: 9 print("think smaller!") 10 else: 11 print("think bigger") 12 count +=1 13 if count == 3: 14 continue_confirm = input("do you want go head ?:") 15 if continue_confirm != "no": 16 count = 0
标签:style bre lse while oldboy guess ant conf bsp
原文地址:https://www.cnblogs.com/doubleK24/p/11863276.html