📜  将 csv 转换为 python 列表 - Python 代码示例

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

代码示例1
import csv
with open('records.csv', 'r') as f:
  file = csv.reader(f)
  my_list = list(file)
print(my_list)