python 拷贝文件 使用绝对目录: import os import shutil shutil.copyfile("/opt/test/update.tar.gz","/opt/update.tar.gz")