Readers? =? Open (infile, r')
A writer? =? Open (outfile, w')
buff? =? []
buff_size? =? 1000#? The file is too large, and the output is cached in the block.
What time? True:
Line? =? reader.readline()
What if? Len (line)? ==? 0:
break
Field? =? line.split()[2]
buff.append(field.strip())
What if? len(buff)? & gt=? buff_size:
writer.write(')。 Buff)
buff? =? []
Otherwise:
writer.write(')。 Buff)
writer.close()
reader.close()