python实现文章拷贝shutil

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)

你可能感兴趣的:(python实现文章拷贝shutil)