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"]:
2024-03-12 20:26:56
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"]: