Commit a9c4329d by BellCodeEditor

save project

parent 732ca082
Showing with 7 additions and 1 deletions
...@@ -3,7 +3,7 @@ import csv ...@@ -3,7 +3,7 @@ import csv
with open('report.csv',"r", encoding="utf-8")as f: with open('report.csv',"r", encoding="utf-8")as f:
f_csv = csv.reader(f) f_csv = csv.reader(f)
f_csv = list(f_csv) f_csv = list(f_csv)
pipi = f_csv[7] pipi = f_csv[3]
print(pipi) print(pipi)
for row in f_csv: for row in f_csv:
print(row[3]) print(row[3])
\ No newline at end of file
姓名,语文,数学,英语
小贝,99,98,89
悟空,99,98,97
皮皮,99,98,97
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment