1 # -*- coding:utf-8 -*- 2 # Author:Monarch-T 3 4 for 循环 5 for i in range(10): 6 print("Loop:", i) 7 8 for i in range(0, 10, 2): #步长2 9 continue 跳出本次循环进入下次循环 10 break 结束循环
1 # -*- coding:utf-8 -*- 2 # Author:Monarch-T 3 4 for 循环 5 for i in range(10): 6 print("Loop:", i) 7 8 for i in range(0, 10, 2): #步长2 9 continue 跳出本次循环进入下次循环 10 break 结束循环