while循环优化版本-for循环

for i in range(0,10):
if i <3:
print("loop ",i)
else :
continue
print("hehe...")
range(10)循环10次

优化之前的脚本

只打印偶数,从0打印到10,但是步长为2

原文地址:https://www.cnblogs.com/itfat/p/7279531.html