码迷,mamicode.com
首页 > 其他好文 > 详细

循环语句

时间:2016-12-03 18:11:50      阅读:117      评论:0      收藏:0      [点我收藏+]

标签:语句   and   bre   数字   break   int   while   print   文字   

  • #循环语句,内容:count开始循环,一直循环。当数字到达>50 <60时显示文字,当数字到达70显示再见
  •  count=0
    while True:
    count +=1
    print(count)
    if count >50 and count<60:
    continue
    print("你好你好你真好")

    if count==70:
    print("再见")
    break

循环语句

标签:语句   and   bre   数字   break   int   while   print   文字   

原文地址:http://www.cnblogs.com/Daniel-python/p/6128988.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!