오늘 수업에 사용된 코드는 Github에 업로드했습니다. 오늘 다룬 내용들은 이터레이터 람다 함수 list 초기화 dict 생성 방법 클래스 상속 클래스의 특수 메소드 Iterator 구현 및 yield 입니다. 이터레이터 파이썬에서 for문을 사용하려면 in의 오른쪽에 오는 식이 이터레이터여야합니다. print('List') l = [1, 3, 5, 7, 9] # l: 배열, for문이 작동하는 건 l이 이터레이터 # (배열이 이터레이터...
Creator of SWC
CEO of Delino. I created SWC, an open-source compiler project, and previously worked at Deno and Vercel.
Markdown supported · ⌘↵ to post
No responses yet.