python shutil模块常用操作 高级的 文件.文件夹.压缩包 处理模块 1.将文件内容拷贝至另一个文件中 shutil.copyfileobj(src, dist, length=16*1024),默认长度为16 * 1024,默认返回None shutil.copyfileobj(open('test3.py', 'r'), open('test3/test2.py','w')) 2.拷贝文件 shutil.copyfile(src, dist),dist目标文件无需存在, 返回复制后…