python 实现tar文件压缩解压的实例详解 python实现tar文件压缩解压的实例详解压缩文件:importtarfileimportosdeftar(fname):t=tarfile.open(fname+" 文件压缩解压的实例