강의

멘토링

커뮤니티

Inflearn Community Q&A

No author

This post's author information has been deleted.

Introduction to Python and Creating Various Automated Applications Using Web Crawling

Extracting necessary data from the web using Python urllib (1)

질문

Written on

·

232

0

제가 잘 이해를 한건지 모르겠습니다.

 

with open(savePath2, 'wb') as saveFile2:

는 저장하는 경로와 파일이름을 지정해줬고, 

saveFile2.write(f2)는 

f2에 html파일을 써서 입력 시키고, 

다시 f2함수로 돌아가서 컴퓨터에 저장을 시키는 것 인가요?

 

 

python웹-크롤링

Answer 1

0

niceman님의 프로필 이미지
niceman
Instructor

as 라는 것은 alias 별명을 주는 것입니다.

 

saveFile2.write(f2) 구문은  f2라는 변수안에 우리가 하드에 기록할 데이터를 savePath2라는 경로 및 파일 이름으로 기록한다는 의미가 있습니다.

 

감사합니다.

No author

This post's author information has been deleted.

Ask a question