From 2268c2e051f4ba9ae43e0bd2d401fe3cc21a894f Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 4 Mar 2023 11:29:36 +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..d4c8c9f 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