python pkgs) pathlib 알아보기
목차 Working Directory Get a path to the current Python file curr_file = pathlib.Path(__file__) print(curr_file) Get a path to the current working directory cwd = pathlib.Path.cwd() print(cwd) Get a first parent folder path parent folder 찾기 one_above = pathlib.Path.cwd().parent print(one_above) Get an Nth parent folder path N번째 상위 폴더를 찾는 방법 mul_above = pathlib.Path.cwd().parent.parent.parent mul_a..
2021.09.22