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實現這個功能非常簡單,因為庫太強大了
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)