Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dic = dict()
- temp = list()
- i = 0
- for line in lines:
- if line.strip():
- if not i:
- temp = list()
- key = line.strip()
- i = 1
- continue
- if not line.strip() and i==1:
- i = 2
- continue
- if not line.strip() and i==2:
- dic[key] = temp
- key = ''
- i = 0
- continue
- if line.strip():
- temp.append(line.strip())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement