python循环-古蔺大橙子建站
RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
python循环
#Author:LiPeijing

age_of_oldboy = 56
count = 0
while count < 3:
    gess_age = int(input("guess age:"))
    if gess_age == age_of_oldboy:
        print("yes, you got it")
        break
    elif gess_age > age_of_oldboy:
        print("think smaller")
    else:
        print("think bigger")
    count += 1
else:
    print("you have tired too many times..fuck off")

分享标题:python循环
网站URL:http://scgulin.cn/article/jhehhj.html