shutil shutil.move(src,dst) shutil.move('/tmp/20170223/new','/tmp/20170223/test') # 移动文件, 重命名等 shutil.copytree(src, dst, symlinks=False, ignore=None) shutil.copytree('/tmp/20170223/','/tmp/20170223-2/') # 递归复制 shutil.copytree('folder1', 'folder2', ig…