Commit 4ecd0d50 by BellCodeEditor

save project

parent 3faf4b37
Showing with 13 additions and 2 deletions
"""读取csv文件"""" """读取csv文件"""
\ No newline at end of file import csv
data = [["姓名", "语文", "数学", "英语"],
["小贝", 98, 99, 92],
["聪聪", 95, 91, 95]]
with open("report.csv","r",encoding="utf-8") as csvfile:
w = csv.reader(csvfile)
m=list(w)
for i in range(7):
print(m[i+1][3])
print(m[7])
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