且构网

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

Python解压缩内存中的gzip数据而无需文件

更新时间:2023-11-10 08:27:28

您需要重新开始才能阅读:

You need to seek back to the start before you can read:

outFile.write(decompressedFile.read())
outFile.flush()
outFile.seek(0)

data = outFile.read().replace('\n', '')