for循环例子

for i in range(0,5,1):
    print(i)

range(i,j,k)三个参数分别为:起始数,结尾数,步长

用多变量可写成

for i,j in zip(range(0,5),range(0,5)):
    print(i,j)