Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FILE = 'result.txt'
- with open(FILE, 'r') as fh:
- num_list = [line for line in fh]
- path = num_list[3].split(':')[0]
- pages = {}
- for i in num_list[4:]:
- ls = i.split(':')
- pages[ls[0]] = [ls[j].split(' ')[2].split(')')[0] for j in range(2,6)]
- print(path)
- print(pages)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement