9 lines
191 B
Python
9 lines
191 B
Python
d = dict()
|
|
with open('test.txt', 'r') as f:
|
|
for line in f:
|
|
if line.strip() == '':
|
|
continue
|
|
l = line.split(',')
|
|
d[1[0]] = l[1].strip()
|
|
print(d)
|