📜  是python代码示例中的dictreader范围

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

代码示例1
import csv
import sys

with open(sys.argv[1], mode='r') as csv_file:
    rows = list(csv.DictReader(csv_file))

for row in rows:
    print(row)