shutil 日常文件管理操作

导入

import shutil

常用函数

  • shutil.copyfile(src, dst) 将src路径处的文件复制到dst路径
  • shutil.move(src, dst) 移动文件