Commit 612a634f by BellCodeEditor

save project

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