반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- hive
- Google Excel
- django
- array
- Tkinter
- list
- Github
- GIT
- Python
- math
- Google Spreadsheet
- 파이썬
- Apache
- gas
- PANDAS
- numpy
- dataframe
- PostgreSQL
- matplotlib
- string
- PySpark
- SQL
- google apps script
- Mac
- Redshift
- Java
- Excel
- c#
- Kotlin
Archives
- Today
- Total
목록makedirs (1)
달나라 노트
Python os : os.makedirs (디렉토리 만들기)
os.makedirs os.makedirs은 디렉토리를 만들어주는 기능을 제공합니다. 아래와 같은 디렉토리 구조가 있다고 가정해봅시다. --- dir |--- test.py |--- test_2 |--- test.xlsx 현재 코드는 test.py에 적히고 있습니다. 만약 test.py와 동일한 디렉토리에 testing이라는 디렉토리를 새로 생성하고싶다면 아래처럼 하면 됩니다. import os os.makedirs(name='testing/', exist_ok=True) - Output --- dir |--- test.py |--- teseting |--- test_2 |--- test.xlsx 그러면 testing이라는 디렉토리가 생성된 것을 볼 수 있습니다. 위 예시에서 exist_ok=True라는..
Python/Python os
2020. 11. 25. 19:25