我如何可以用于环python

代码示例

2
0

蟒蛇如何循环

for _ in range(1,10,2): #(initial,final but not included, gap) (the "_" underscore symbol mean there are no variables initialize in this loop)
	print("hi");
0
0

蟒蛇的循环

for i in range(amount of times in intager form):
	#do stuff
    print(i)# you could use i as a variable. You could set it as u, ool, or anything you want. No blancs tho.
    # i will be the amount of times the loop has been ran. You the first lap it will be 0, the second lap it will be 1. You get it.

其他语言

此页面有其他语言版本

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................