From a556cf6ed8de6e6d970fd99ce24d67107d48c292 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 28 Aug 2021 11:27:48 +0800 Subject: [PATCH] save project --- read_csv.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/read_csv.py b/read_csv.py index ca99da3..5286493 100644 --- a/read_csv.py +++ b/read_csv.py @@ -1 +1,12 @@ -"""读取csv文件"""" \ No newline at end of file +"""读取csv文件""" +import csv +with open("report.csv","r",encoding="utf-8") as f: + r=csv.reader(f) + l=list(r) + y=[] + for i in range(len(l)-1): + y.append(l[i+1][3]) + print(" ".join(y)) + y=l[-1][1:] + print(" ".join(y)) + \ No newline at end of file -- libgit2 0.25.0