📜  将 csv 读取为列表 python 代码示例

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

代码示例1
import csv

with open('file.csv', newline='') as f:
    reader = csv.reader(f)
    data = list(reader)

print(data)