on text-jsstring help sign in
12 lines 292 B history raw
1#!/usr/bin/env python
3import utils, sys, codecs
5def cut(filename, l, r):
6 content = open(filename, encoding='utf-8')
7 for line in content:
8 print(line[l:r])
10for f in sys.argv[1:]:
11 t = utils.benchmark(lambda: cut(f, 20, 40))
12 sys.stderr.write('{0}: {1}\n'.format(f, t))