标签:告诉 col print 技术 pretty 变量 span 第一个 class
Python continue 语句跳出本次循环,而break跳出整个循环。
continue 语句用来告诉Python跳过当前循环的剩余语句,然后继续进行下一轮循环。
continue语句用在while和for循环中。
Python 语言 continue 语句语法格式如下:
continue
流程图:
实例:
以上实例执行结果:
当前字母 : P
当前字母 : y
当前字母 : t
当前字母 : o
当前字母 : n
当前变量值 : 9
当前变量值 : 8
当前变量值 : 7
当前变量值 : 6
当前变量值 : 4
当前变量值 : 3
当前变量值 : 2
当前变量值 : 1
当前变量值 : 0
Good bye!
参考:https://www.cgewang.com/post/2953.html
标签:告诉 col print 技术 pretty 变量 span 第一个 class
原文地址:https://www.cnblogs.com/ling10086/p/12784265.html