by Jom07 » 24/01/2018 6:12 pm
ทำความรู้จักกับภาษา python (11) : For loop Statements (ฟอร์ ลูป สเตรดเม้นท์)
ตัวอย่าง For loop Statements
Code: Select all
alist = ['Training', 'Python', 'mindphp']
for l in alist:
print('alist ตัวล่าสุด', l)
print('--------------------')
ผลรัน
ศึกษาข้อมูลจาก :
https://www.youtube.com/watch?v=imbVgL2 ... lzdKrpxsMM
ทำความรู้จักกับภาษา python (11) : For loop Statements (ฟอร์ ลูป สเตรดเม้นท์)
ตัวอย่าง For loop Statements
[code]alist = ['Training', 'Python', 'mindphp']
for l in alist:
print('alist ตัวล่าสุด', l)
print('--------------------')[/code]
ผลรัน
[img]http://snap.mindphp.com/index.php?view=2018Jan24_5a68674a8904f[/img]
ศึกษาข้อมูลจาก :[url]https://www.youtube.com/watch?v=imbVgL2Vjvk&index=11&list=PLLi1ciqQAf8TVFbJpl7XY23lzdKrpxsMM[/url]