for in
1.计数循环
for i range(N):
range:0~N-1.
2.特定次数
for i range(M,N,K):
//M 起点,N终点,K步长
3.字符串遍历循环
for i in "python123":
print(i)
//输出: p y t h o n 1 2 3
4.列表循环
for i in ["sjj","111"]:
标签:遍历,步长,range,python123,print,循环
来源: https://www.cnblogs.com/juanzhi/p/12416060.html