Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def load(self, f_in_1, f_in_2, f_out_1, f_out_2):
- file_pairs = [(f_in_1, f_out_1), (f_in_2, f_out_2)]
- for pair in file_pairs:
- with open(pair[0]) as f_in, open(pair[1], 'w') as f_out:
- for line in f_in:
- parts = line.split()
- f_out.write('{{{}:{}}}\n'.format(parts[2], parts[0]+parts[3:7]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement