os.remove()
will remove a file.
os.rmdir()
will remove an empty directory.
shutil.rmtree()
will delete a directory and all its contents.
os.remove()
will remove a file.
os.rmdir()
will remove an empty directory.
shutil.rmtree()
will delete a directory and all its contents.
本文标题:python删除文件或文件夹
本文链接:https://www.haomeiwen.com/subject/nsjneftx.html
网友评论