python_13_break

for i in range(5):
    print('-----------',i)
    for j in  range(5):
        print(j)
        if j>2:
            break####结束当前循环

  

posted @ 2018-01-03 09:23  耐烦不急  阅读(127)  评论(0编辑  收藏  举报