continue #结束本次循环,继续下一次代码

for i in range(10):
    if i <5:
        continue
   
print(i)
    for j in range(10):
        print("layer2",j)
        if j == 6:
            exit_flag = True
            break
        if
exit_flag:
            break
posted @ 2019-02-18 17:33  李俊鹏Python  阅读(647)  评论(0编辑  收藏  举报