Commit 4396fd1f by BellCodeEditor

save project

parent 4c4f5a33
Showing with 7 additions and 7 deletions
...@@ -3,13 +3,13 @@ import csv ...@@ -3,13 +3,13 @@ import csv
data = [["姓名", "语文", "数学", "英语"], data = [["姓名", "语文", "数学", "英语"],
["小贝", 98, 99, 92], ["小贝", 98, 99, 92],
["聪聪", 95, 91, 95]] ["聪聪", 95, 91, 95]]
with open("soce.cvs","w",encoding="utf-8",newline='')as myfile: with open("repot.cvs","r",encoding="utf-8")as f:
write=csv.writer(myfile) inf=csv.reader(f)
write.writerows(data) inf=list(inf)
pipi = inf[7]
print(pipib)
for row in inf:
print(row[3])
......
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