From e6f6e40e0b5348ea9b9f5f4b61af0ea97235ad79 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 22 May 2022 14:59:41 +0800 Subject: [PATCH] save project --- read_csv.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/read_csv.py b/read_csv.py index ca99da3..a16b91c 100644 --- a/read_csv.py +++ b/read_csv.py @@ -1 +1,10 @@ -"""读取csv文件"""" \ No newline at end of file +"""读取csv文件"""" +import csv + +with open('report.csv',"r",encoding="utf-8") as f: + f_csv=csv.reader(f) + f_csv=list(f_csv) + pipi=f_csv[7] + print(pipi) + for row in f_csv: + print(row[3]) \ No newline at end of file -- libgit2 0.25.0