bz2 compression (Python 3). import bz2. # read. with bz2.open('input_file.bz2', 'rt', encoding='utf-8') as f: for line in f: l=line.strip(). print(l).
確定! 回上一頁