run ubuntu ! run !!
one stop solution for many ubuntu related problems. visit and suggest for more improvement.
Thursday, May 16, 2013
BZ2 compression & decompression in python
pretty easy!
let's say your .bz2 file is "filename":
import bz2
bfile = bz2.BZ2File(
filename
,"r")
for line in bfile:
print line.strip()
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment