วนฟังก์ชันเป็นภาษาไพธอน

รหัสตัวอย่าง

68
0

ปลั๊กอินสำหรับไพธอนบางอย่าง

#x starts at 1 and goes up to 80 @ intervals of 2
for x in range(1, 80, 2):
  print(x)
29
0

ปลั๊กอินสำหรับไพธอนสำหรับวง

for x in (list):
  print(x)
6
0

ปลั๊กอินสำหรับไพธอนสำหรับวง

words=['zero','one','two']
for operator, word in enumerate(words):
	print(word, operator)
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

สำหรับเรื่องภาษาไพธอน

#Python syntax for loop
add=0
for i in range(0,10):
  add=add+i
add=0  
list_1=[1,2,3,4,5,6,7]
for i in list_1:
  add=add+i
  

หน้าคล้ายกัน

คล้ายกันหน้ากับตัวอย่าง

ในภาษาอื่นๆ

หน้านี้อยู่ในภาษาอื่นๆ

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