如何删除文件或者文件夹

 

 
os.remove() will remove a file.
os.rmdir() will remove an empty directory.
shutil.rmtree() will delete a directory and all its contents.
 
 
posted @ 2018-04-10 23:19  relax.1949  阅读(294)  评论(0编辑  收藏  举报