Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import csv
- import sys
- with open('tq.rep') as csvfile:
- reader = csv.reader(csvfile, delimiter=',')
- content = list(reader)
- for row in content:
- if (str(sys.argv[1]) in str(row)) and len(str(row))<10:
- print content[content.index(row)-10]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement