Community post
파이썬에서 for문
파이썬 for문은 왜 반복형을 받아 처리하는 구조잉까?
실제 다양한 자료형 객체들이 내부 원소들을 가지고 있어 이를 반복하게 처리하는 것이 편리한 경우가 많다
간단한 예로 파일을 읽으면 파일은 내부에 라인을 원소로한 반복형이므로 별도의 검색없이도 for문에서 라인별 처리가 가능하다
4th Street Bar
Hive-Bar
Browse freely. Sign in only when you want to participate.
Hive-Bar Powered by Hive beta-fdb5b5b
Community post
파이썬 for문은 왜 반복형을 받아 처리하는 구조잉까?
실제 다양한 자료형 객체들이 내부 원소들을 가지고 있어 이를 반복하게 처리하는 것이 편리한 경우가 많다
간단한 예로 파일을 읽으면 파일은 내부에 라인을 원소로한 반복형이므로 별도의 검색없이도 for문에서 라인별 처리가 가능하다
Replies (2)
Congratulations @zerosum99! You received a personal award!
Click here to view your Board
Congratulations @zerosum99! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!