且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

解压缩tar.Z文件与python?

更新时间:2021-11-26 22:48:19

如果GZIP - 应用程序可以处理它,您有两个选择。

If GZIP -- the application -- can handle it, you have two choices.


  1. c $ c> gzip 库。

使用子流程Popen 运行 gzip

它可能是一个InstallShield .Z文件。您可能需要使用InstallShield解压缩并解压缩.TAR文件。再次,您可以使用子进程Popen 来处理文件。

It may be an InstallShield .Z file. You may want to use InstallShield to unpack it and extract the .TAR file. Again, you may be able to use subprocess Popen to process the file.

它也可以是LZW压缩文件。看看这个库,可能会有帮助。

It may also be a "LZW compressed file". Look at this library, it may help.

http://www.chilkatsoft.com/compression-python.asp