code
# Author:黑猴子
#continue
for i in range(0,10):
if i <3:
print("loop ",i)
else :
continue
print("hehe...")
运行
loop 0
hehe...
loop 1
hehe...
loop 2
hehe...
code
# Author:黑猴子
#continue
for i in range(0,10):
if i <3:
print("loop ",i)
else :
continue
print("hehe...")
运行
loop 0
hehe...
loop 1
hehe...
loop 2
hehe...
本文标题:黑猴子的家:Python for循环-continue
本文链接:https://www.haomeiwen.com/subject/tvyarqtx.html
网友评论