첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
import os

for (directoryPath, subdirectoryList, fileNameList) in os.walk("c:\\"):
    for fileName in fileNameList:
        fileExtension = os.path.splitext(fileName)[-1]
        if fileExtension == ".py":
            filePath = os.path.join(directoryPath, fileName)
            print(filePath)
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요