Erlo

Python学习day01

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

点赞 打赏

×打赏

支付宝

微信

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.vip2019-05-24 14:45:35Hello、欢迎使用吐槽厅,这里是个吐槽的地方。
  • 首页 笔记分享 案例展示 ERLO 搜索
    鼠标试试
    返回顶部