0
How to count word from a zipped file which in gz format using python?
2 Antworten
+ 5
A module called 'gzip' should handle this. It can read the file and return contents to you (text or binary). You can decompress and do a normal search loop, like you would do with a regular file on your desktop.
+ 3
This gunzips a stream of gzipped bytes I typed into the program.
It's not a full answer but it may help you use the gzip module.
https://code.sololearn.com/cpl25LvQ3wvu/?ref=app