python 拷贝文件

使用绝对目录:

import os
import shutil
shutil.copyfile("/opt/test/update.tar.gz","/opt/update.tar.gz")

原文地址:https://www.cnblogs.com/sea-stream/p/10334913.html