Commit e4cff022 by BellCodeEditor

save project

parent ce519f69
Showing with 11 additions and 9 deletions
import csv
data=[98,89,99]
with open("dac.csv","w")as flie:
writel=csv.writer(flie)
writel.writerow(data)
data = [["姓名", "语文", "数学", "英语"],
["小贝", 98, 99, 92],
["聪聪", 95, 91, 95]]
with open("dac.csv","r",encoding="utf-8", newline='')as flie:
f_scv = csv.reader(flie)
print(f_scv)
f_scv = list(f_scv)
print(f_scv)
subject = ["姓名", "语文", "数学", "英语"]
score1 = ["小贝", 98, 99, 92]
score2 = ["聪聪", 95, 91, 95]
\ 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