파이썬으로 파일 다루기 2 / 13

파이썬으로 파일 다루기 2 / 13


폴더 만들기



os.makedirs()


폴더를 생성합니다.



e:\test 폴더에 test1폴더를 만들어 보도록 하겠습니다.



위의 코드를 실행하여 폴더를 생성해 보았습니다.



폴더를 생성했습니다.



위와같이 폴더가 생성된것을 확인할수 있습니다.


For take thy balance if thou be so wise And weigh the wind that under heaven doth blow; Or weigh the light that in the east doth rise; Or weigh the thought that from man's mind doth flow.