Converting list of lists in dictionary python
问题 I'm facing the following problem. I have a list of lists obtained from a remote URL with the following code: import csv import urllib.request text_url = 'https://www.emidius.eu/fdsnws/event/1/query?starttime=1899-01-01T00:00:00&endtime=1899-01-31T23:59:59&minmag=4&maxmag=9&orderby=time-asc&limit=100&format=text' with urllib.request.urlopen(text_url) as response: my_text = response.read().decode() lines = my_text.splitlines() reader = csv.reader(lines, delimiter='|') I can convert the reader