在現代Python版本中,可以使用 os.scandir() 和 pathlib.Path 來替代 os.listdir() 。 os.scandir() 在Python 3.5 中被引用,其文件為PEP 471 。 os.
確定! 回上一頁