From b8b4f17bd0f54a0a7210d1c00b2e52ab02a7fa62 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 6 Jul 2024 09:42:44 +0800 Subject: [PATCH] auto save --- read_csv.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/read_csv.py b/read_csv.py index ca99da3..b7057f3 100644 --- a/read_csv.py +++ b/read_csv.py @@ -1 +1,7 @@ -"""读取csv文件"""" \ No newline at end of file +import csv +with open("report.csv","r",encoding="utf-8") as file: + f_csv=csv.reader(file) + f_csv=list(f_csv) + for i in range(1,4): + for j in range(1,3): + print(f_csv[i][j]) \ No newline at end of file -- libgit2 0.25.0