python复制、移动文件到指定目录

import shutil
shutil.copyfile(oldfile, newfile)  # 复制
shutil.move(oldfile, newfile)  # 移动

猜你喜欢

转载自blog.csdn.net/coco_link/article/details/84255908
今日推荐