Commit 2a4ae21a by BellCodeEditor

save project

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