import os import shutil import subprocess #拷贝文件 def copyFile(srcFile, dstFile): #检查源文件是否存在 if not os.path.isfile(srcFile): print('%s not exist' % srcFile) return False #如果目的路径不存在创建目录 fpath, fname = os.path.split(dstFile) if not os.path.exists(fpath):