📅  最后修改于: 2022-03-11 14:46:08.255000             🧑  作者: Mango
import csv
from collections import defaultdict
columns = defaultdict(list)
with open("test.csv") as f:
reader = csv.reader(f)
for row in reader:
for (i,v) in enumerate(row):
columns[i].append(v)
print(columns[0])