Commit f87acc0d by BellCodeEditor

auto save

parent b7c2e09a
Showing with 2 additions and 3 deletions
......@@ -5,5 +5,4 @@ data = [["姓名", "语文", "数学", "英语"],
["聪聪", 95, 91, 95]]
with open("1.csv","w",encoding="utf-8",newline="")as a:
writer=csv.writer(a)
for i in data:
writer.writerow(i)
\ No newline at end of file
writer.writerows(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