📜  python 将 csv 读入数组 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:21.175000             🧑  作者: Mango

代码示例1
import csv 

items = []

with open('file.csv') as csvfile:    
    csvReader = csv.reader(csvfile)    
    for row in csvReader:        
        items.append(row[0])        
print(items)