for i in range(1,15):
print(i)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
从M开始,到N结束,K为步长
for c in "hello":
print(c,end=",")
abc = 12123124213
for item in [123,'hello',689,abc]:
print(item, end=',')
for i in range(1,15):
print(i)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
从M开始,到N结束,K为步长
for c in "hello":
print(c,end=",")
abc = 12123124213
for item in [123,'hello',689,abc]:
print(item, end=',')