4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

파이썬에서 for문

파이썬 for문은 왜 반복형을 받아 처리하는 구조잉까?

실제 다양한 자료형 객체들이 내부 원소들을 가지고 있어 이를 반복하게 처리하는 것이 편리한 경우가 많다

간단한 예로 파일을 읽으면 파일은 내부에 라인을 원소로한 반복형이므로 별도의 검색없이도 for문에서 라인별 처리가 가능하다

1 upvotes $0.00

Replies (2)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: