writer = csv.writer(outfile). 7. mydict = {rows[0]:rows[1] for rows in reader}. Source: stackoverflow.com. how to create dictionary in python from csv.
確定! 回上一頁