Commit 4b8eac40 by BellCodeEditor

save project

parent 8bed9b4e
Showing with 2 additions and 2 deletions
...@@ -6,4 +6,4 @@ data = [["姓名", "语文", "数学", "英语"], ...@@ -6,4 +6,4 @@ data = [["姓名", "语文", "数学", "英语"],
with open("text.csv",'w',encoding='utf-8',newline='') as f: with open("text.csv",'w',encoding='utf-8',newline='') as f:
a=csv.writer(f) a=csv.writer(f)
a.writerows([data[0],data[1],data[2]]) a.writerows(data[0],data[1],data[2]])
\ No newline at end of file \ 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