Commit 8281f8c9 by BellCodeEditor

save project

parent c2ee65b7
Showing with 2 additions and 1 deletions
......@@ -5,6 +5,6 @@ score1 = ["小贝", 98, 99, 92]
score2 = ["聪聪", 95, 91, 95]
import csv
data=[95,92,94]
with open("test.csv","w")as csvfile:
with open("scores.csv","w",encoding="utf-8",newline='')as csvfile:
writer=csv.writer(csvfile)
writer.writerow(data)
\ 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