Commit c10ed0dc by BellCodeEditor

save project

parent b1250990
Showing with 6 additions and 3 deletions
...@@ -3,6 +3,6 @@ import csv ...@@ -3,6 +3,6 @@ import csv
with open('report.csv','r',encoding='utf-8',newline='') as f: with open('report.csv','r',encoding='utf-8',newline='') as f:
f_csv = csv.reader(f) f_csv = csv.reader(f)
f_csv = list(f_csv) f_csv = list(f_csv)
print(f_csv[7]) print(f_csv[2])
for i in f_csv: for i in f_csv:
print(f_csv[i][3]) print(i[3])
\ No newline at end of file \ No newline at end of file
n,1,2,3,4
a,7,6,5,4
b,1,2,3,4
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