#1프로그래밍/#1-1파이썬

Python - os 명령어

HopeDeveloper 2021. 8. 31. 12:59

1. 현재 경로 가져오기

current_path = os.getcwd()
print(current_path)

 

2. 현재 경로 저장

- 코드

-생성 파일

-생성 파일에 저장된 text 내용