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

continue and break

时间:2018-05-15 00:34:56      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:break   +=   star   tar   pre   and   art   start   utf-8   

#-*- coding:utf-8 -*-
start = 1
while True:
if start == 7:
start += 1
continue

print (start)
if start == 10:
break
start += 1

continue and break

标签:break   +=   star   tar   pre   and   art   start   utf-8   

原文地址:https://www.cnblogs.com/gwxu/p/9038642.html

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