任性玩 while
Posted 0815tang
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了任性玩 while相关的知识,希望对你有一定的参考价值。
age_of_me = 17 count = 0 while count < 5: guess_age = int(input("guess age:")) if guess_age == age_of_me : print("yes,you get it.") break elif guess_age > age_of_me: print("guess smaller") else: print("guess bigger") count +=1 if count == 5: countine_confirm = input("do you want go on:") if countine_confirm != ‘n‘: count = 0
以上是关于任性玩 while的主要内容,如果未能解决你的问题,请参考以下文章