Verwenden Sie DictReader, um CSV als Wörterbuch zu lesen
DictReader.py
import csv
data = []
with open('stimuliSet.csv', encoding = 'utf-8_sig') as f:
reader = csv.DictReader(f)
for row in reader:
data.append(row)
Recommended Posts