... avoid directories in the list import os.path listOfFiles = [f for f in os.listdir() if os.path.isfile(f)]. Using pathlib from Python 3.4
確定! 回上一頁