python while循环-Python基本语法

阅读: 563 | 文章分类: Python | Tag: Python  

# python while循环 ``` age_for_cloudhy=12 count=0 while count < 3: guess_age = int(input('guess age:')) if guess_age == age_for_cloudhy: print('yes') break elif guess_age > age_for_cloudhy: print('think smaller...') else: print('think bigger!') count +=1 else: print('you have tried too many times...fuck off') ```