python实现文章拷贝shutil

2017-08-24  本文已影响0人  KavinDotG

python实现这个功能非常简单,因为库太强大了

import os
import shutil
oldfile = "E:\\pytest\\Inpainting-master\\image\\old.jpg"
newfile = "E:\\pytest\\Inpainting-master\\image\\400X640\\new.jpg"
shutil.copyfile(oldfile,newfile)
上一篇 下一篇

猜你喜欢

热点阅读