//目录

python 打包文件

tarfile

import tarfile
tar = tarfile.open("sk_camera_6018.tar","w")
tar.add(fullpath)
tar.close()

参考:https://www.cnblogs.com/liangqihui/p/9219333.html

posted @ 2019-02-18 14:23  小草的大树梦  阅读(468)  评论(0编辑  收藏  举报