Читать CSV как список Python
import csv
with open('file.csv', newline='') as f:
reader = csv.reader(f)
data = list(reader)
print(data)
Gubo97000
import csv
with open('file.csv', newline='') as f:
reader = csv.reader(f)
data = list(reader)
print(data)
import csv
with open('records.csv', 'r') as f:
file = csv.reader(f)
my_list = list(file)
print(my_list)
import csv
with open("out.csv", "w", newline="") as f:
writer = csv.writer(f)
writer.writerows(a)
import csv
mycsv = list(csv.reader(datafile, delimiter=","))
open('file.csv', 'r').read().splitlines() #assuming you want each row to be an individual element in the list