강의

멘토링

로드맵

인프런 커뮤니티 질문&답변

tmdwodl12님의 프로필 이미지
tmdwodl12

작성한 질문수

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

File Wirte(2-2)

Header를 작성할 때 dictwriter

작성

·

223

0

마지막 예제 5에서 필드명을 작성할 때, wt = dictwriter라 하셨는데 왜 그냥 writer가 아니라 dictwriter가 쓰였는지 궁금합니다.

밑에 wt.writerow({'One' : v[0], 'Two' : v[1], 'Three' : v[2], 'Four' : v[3]})

라고 적어야 하기 때문인가요?

퀴즈

What happens when a file is opened in write mode ('w')?

Content is added at the end of the file.

The existing content of the file is erased and new content is written.

Both read and write modes are activated.

If the file cannot be opened, an error occurs.

답변 1

0

좋은사람님의 프로필 이미지
좋은사람
지식공유자

네 딕셔니리 자료구조에 맞게 read writer를 편하게 수행 하실 수 있어요!!

tmdwodl12님의 프로필 이미지
tmdwodl12

작성한 질문수

질문하기