📜  python如何将csv转换为数组 - Python代码示例

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

代码示例1
import csv

results = []
with open("input.csv") as csvfile:
    reader = csv.reader(csvfile, quoting=csv.QUOTE_NONNUMERIC) # change contents to floats
    for row in reader: # each row is a list
        results.append(row)