for name in files: os.remove(os.path.join(root, name)). pathlib. A library for dealing with file paths: https://docs.python.org/3/library/pathlib.html.
確定! 回上一頁