🌈 搜索
📅  最后修改于: 2022-03-11 14:46:31.248000             🧑  作者: Mango
import tarfile tar = tarfile.open("TarName.tar.gz", "w:gz") tar.add("folder/location", arcname="TarName") tar.close()