📜  for in range 循环 python 代码示例

📅  最后修改于: 2022-03-11 14:46:06.149000             🧑  作者: Mango

代码示例6
for i in range(5):
    print(i)
"""
0
1
2
3
4
"""

for i in range(5, 10):
    print(i)
"""
5
6
7
8
9
"""


for i in range(5, 15, 3):
    print(i)
"""
5
8
11
14
"""