Найти - Пользователи
Полная версия: gzip file>4GB
Начало » Python для новичков » gzip file>4GB
1
doza_and
Может кто смотрел
import zlib,gzip
f_in = open(fil, 'rb')
f_out = gzip.open(fil+'.gz', 'wb')
f_out.writelines(f_in)
f_out.close()
f_in.close()
Это будет работать если размер выходного файла будет больше 2-4GB?
zlib.ZLIB_VERSION ‘1.2.3’
doza_and
будет. Вопрос закрыт. Просто лень было файл плодить.
f_out = gzip.open('examp.gz', 'wb')
while 1:
v=np.random.rand(1024)
f_out.write(v.data)
f_out.close()
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB