Commit c8d3ada3 by BellCodeEditor

save project

parent 3faf4b37
Showing with 13 additions and 2 deletions
"""读取csv文件"""" import csv
\ No newline at end of file with open('report.csv','r',encoding="utf-8") as f:
f_csv=csv.reader(f)
f_csv=list(f_csv)
a=[]
b=[]
for i in range(1,8):
a.append(f_csv[i][3])
print(a)
for i in range(1,8):
b.append(f_csv[7][i])
print(b)
\ 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