Commit 08a6c54b by BellCodeEditor

auto save

parent 3faf4b37
Showing with 16 additions and 3 deletions
"""读取csv文件""""
\ No newline at end of file import csv
with open("report.csv","r",encoding="utf-8") as f:
w = csv.reader(f)
w= list(w)
print(w)
print('我是空行1')
for i in range(1,8):
b=w[i][3]
print('我是空行2')
for a in range(5,9):
a=w[4][a]
姓名,语文,数学,英语,地理,历史,政治,生物,化学,物理 姓名,语文,数学,英语,地理,历史,政治,生物,化学,物理
小贝,99,100,94,90,88,89,96,98,96 小贝,99, 100, 94, 90, 88, 89, 96, 98, 96
李强,86,95,96,84,86,63,78,66,74 李强,86,95,96,84,86,63,78,66,74
小依,75,88,94,54,77,97,86,77,89 小依,75,88,94,54,77,97,86,77,89
聪聪,65,76,97,66,73,78,58,66,69 聪聪,65,76,97,66,73,78,58,66,69
......
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