반응형
디렉토리가 있는지 확인하고 있지만 os.path.isdir
대신 os.path.exists
를 사용하고 있습니다. 둘 다 잘 작동하지만 exists
대신 isdir
을 사용하면 어떤 이점이 있는지 궁금합니다.
해결 방법
참조 페이지 https://stackoverflow.com/questions/15077424
반응형
'파이썬' 카테고리의 다른 글
파이썬 플롯 할 matplotlib Axes 인스턴스를 얻는 방법은 무엇입니까? (0) | 2021.01.25 |
---|---|
파이썬 내일 날짜를 얻는 가장 깨끗하고 파이썬적인 방법? (0) | 2021.01.25 |
파이썬 python dictionary passed as an input to a function acts like a global in that function rather than a local (0) | 2021.01.25 |
파이썬 Flask.g는 언제 사용해야합니까? (0) | 2021.01.25 |
파이썬 트레이스 백으로 예외 로그 (0) | 2021.01.25 |
댓글