Commit ab772eb5 by BellCodeEditor

save project

parent 612a634f
Showing with 2 additions and 1 deletions
......@@ -3,7 +3,7 @@ import csv
subject = ["姓名", "语文", "数学", "英语"]
score1 = ["小贝", 98, 99, 92]
score2 = ["聪聪", 95, 91, 95]
with open("C:\Users\lenovo\Documents\level3-lesson23-diy1",'w',encoding='utf-8')as file:
with open("mycsy.csy",'w',encoding='utf-8')as file:
csvwriter=csv.writer(file)
csvwriter.writerow(subject)
csvwriter.writerow(subject1)
......
姓名,语文,数学,英语
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