import csv
with open('test.csv','rb') as file:
rows = csv.reader(file,
delimiter = ',',
quotechar = '"')
data = [data for data in rows]
Questo era Python: reading in a csv file and saving columns as variables. Non ho potuto commentare, ma sono davvero confuso. Cosa significa "rb"?cosa significa "rb" nei file csv?
Un bel po 'di domande su questo, ad es. [this one] (http://stackoverflow.com/questions/15746954/what-is-the-difference-between-rb-and-rb-modes-in-file-objects) – lrnzcig