반응형
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
- Java
- array
- Google Excel
- numpy
- 파이썬
- google apps script
- Tkinter
- django
- c#
- list
- PostgreSQL
- Apache
- string
- gas
- Github
- PySpark
- PANDAS
- math
- Kotlin
- Presto
- Redshift
- hive
- SQL
- Excel
- Python
- matplotlib
- GIT
- Google Spreadsheet
- dataframe
Archives
- Today
- Total
달나라 노트
Python os : getcwd (현재 Directory 위치 출력, 현재 디렉토리 위치, 현재 디렉토리 주소, 현재 디렉토리) 본문
Python/Python os
Python os : getcwd (현재 Directory 위치 출력, 현재 디렉토리 위치, 현재 디렉토리 주소, 현재 디렉토리)
CosmosProject 2020. 12. 23. 03:42728x90
반응형
import os
print(os.getcwd())
os.getcwd는 현재 code가 실행되는 위치나 실행된 code가 적힌 python file이 있는 directory를 반환합니다.
728x90
반응형
'Python > Python os' 카테고리의 다른 글
| Python os : os.environ.get (environment_variable_name) (0) | 2021.05.11 |
|---|---|
| Python os : chdir (Directory 위치 변경) (0) | 2020.12.23 |
| Python os : rename (file 이름 바꾸기) (0) | 2020.12.23 |
| Python os : unlink (파일 제거하기) (0) | 2020.12.23 |
| Python os : os.makedirs (디렉토리 만들기) (0) | 2020.11.25 |
Comments