python删除文件或文件夹

2018-06-18  本文已影响0人  邹霉霉

os.remove() will remove a file.

os.rmdir() will remove an empty directory.

shutil.rmtree() will delete a directory and all its contents.

上一篇下一篇

猜你喜欢

热点阅读