Erlo

Python学习day01

时间:2019-01-12 01:02   阅读:12次   来源:博客园页面报错

点赞 打赏

×打赏

支付宝

微信

age = 23
count=0
while count<3:

    guess_age = int (input("My age:"))
    if age ==guess_age:
        print("nice, you got it")
        break
    elif age < guess_age:
        print("guess bigger!think smaller.")
    else:
        print("guess smaller,think bigger.")
    count=count+1
    if count==3:
        keep=input("ndo you want to keeping guess?if no,input a n.")
        if keep!="n":
            count=0
print("bey bey!")

View Code

age = 23
count=0
while count<3:

    guess_age = int (input("My age:"))
    if age ==guess_age:
        print("nice, you got it")
        break
    elif age < guess_age:
        print("guess bigger!think smaller.")
    else:
        print("guess smaller,think bigger.")
    count=count+1
    if count==3:
        keep=input("ndo you want to keeping guess?if no,input a n.")
        if keep!="n":
            count=0
print("bey bey!")

https://blog.csdn.net/PythonEnding/article/details/86325351

2019-01-12 00:08:08

 

下一篇:聊聊技术写作的个人体会

评论留言

还没有评论留言,赶紧来抢楼吧~~

Erlo大厅()

* 这里是“Erlo大厅”,在这发言所有人都可以看到。只保留当天信息

  • Erlo.vip2019-01-21 06:30:50Hello、欢迎使用Erlo大厅,这里是个吐槽的地方。
  • 首页 笔记分享 新闻资讯 ERLO 搜索
    鼠标试试
    返回顶部