왜 열거형(sequence)를 따라서 for문을 사용하게 했는지 모르겠지만..
일단은 열거형은 []로 나열되는 tuple의 list 혹은 array라고 하는데
node.js와 비교하면 배열을 foreach 로 반복하도록 문법을 제한한 느낌이라고 해야하나?
[링크 : https://www.w3schools.com/python/ref_func_range.asp]
[링크 : https://www.learnpython.org/en/Loops]
'Programming > python(파이썬)' 카테고리의 다른 글
python yield (0) | 2021.04.07 |
---|---|
python 공부 (0) | 2020.01.14 |
python 반복문 for in range() (0) | 2020.01.11 |
python print 와 while 문 (0) | 2020.01.11 |
오랫만에 한가로움? (0) | 2020.01.11 |
python split (0) | 2020.01.10 |
댓글을 달아 주세요