使用绝对目录: import os import shutil shutil.copyfile("/opt/test/update.tar.gz","/opt/update.tar.gz") 相关文章: