파이썬의 장점 중 하나는 일률적인 업무를 돕는 프로그램을 쉽게 만들 수 있다는 점이다. 이런 것이 가능한 이유는 파일과 디렉터리를 쉽게 관리할 수 있기 때문이다. 파일, 디렉터리 관리와 관련된 패키지는 os, shutil이다. 각각 용도에 따라 다르게 사용된다. # file Detection import os path = "C:\\Users\\User\\Desktop\\test.txt" if os.path.exists(path): print("That location exists!") if os.path.isfile(path): print("That is a file") elif os.path.isdir(path): print("That is a directory!") else: print("That l..