def movefile(source, dest): try: shutil.move(source, dest) except shutil.Error: os.remove(source)
python移动文件,如果目标文件已存在,覆盖并删除源文件
上一篇:WORDPRESS经常429 Too Many Requests
下一篇:python报错 can only concatenate str (not “int”) to str