강의

멘토링

커뮤니티

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

Newton님의 프로필 이미지
Newton

작성한 질문수

파이썬 입문 및 웹 크롤링을 활용한 다양한 자동화 어플리케이션 제작하기

파이썬 urllib을 활용한 웹에서 필요한 데이터 추출하기(1)

write 질문입니다.

작성

·

54

0

삭제된 글입니다

답변 1

0

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

맞습니다. 형직님

jpeg , 영상, exe 등은 바이너리 모드로 등록하셔야 합니다.

On Windows, 'b' appended to the mode opens the file in binary mode, so there are also modes like 'rb', 'wb', and 'r+b'. Python on Windows makes a distinction between text and binary files; the end-of-line characters in text files are automatically altered slightly when data is read or written. This behind-the-scenes modification to file data is fine for ASCII text files, but it’ll corrupt binary data like that in JPEG or EXE files.

Newton님의 프로필 이미지
Newton

작성한 질문수

질문하기