python 11制御フロー文ジャンプ文

2847 ワード

#break      ,            ,       
while True:
    print(1)
    break

while 1:
    for i in range(5):    #0,1,2,3,4
        print(i)          #0
        break

while 1:
    for i in range(5):
        print(i)
    break

#continue      (       ,      )
for i in range(11):
    if i%2==0:
        print(i)
    else:
            continue

#pass,          ,     
for i range(11):
    pass