for
i
in
range
(
1
,
10
,
2
):
print
i
for
i
in
range
(开始
/
左边界, 结束
/
右边界, 步长):
print
i
以上相当于
for (i
=
1
;i<
=
10
;i
+
=
2
)