python判断某个文件是否存在,如果存在则删除

python判断某个文件是否存在,如果存在则删除:
    if os.path.exists(filefullpath):
        os.remove(filefullpath)

 

posted on 2020-06-10 22:51  一杯明月  阅读(12297)  评论(0)    收藏  举报