Commit c87fd676 by BellCodeEditor

auto save

parent 130d699b
Showing with 2 additions and 2 deletions
...@@ -19,4 +19,5 @@ with open('score2.csv','w',encoding='utf-8')as f: ...@@ -19,4 +19,5 @@ with open('score2.csv','w',encoding='utf-8')as f:
b=[[4,5,6,7,8],[9,10,11,12,13],[14,15,16,17,18,19]] b=[[4,5,6,7,8],[9,10,11,12,13],[14,15,16,17,18,19]]
with open('score3.csv','w',encoding='utf-8',newline='')as f: with open('score3.csv','w',encoding='utf-8',newline='')as f:
w=csv.writer(f) #创建读写对象 w=csv.writer(f) #创建读写对象
w.writerows(b) #把列表数据加入到文件中 w.writerows(b) #把列表数据加入到文件中
\ 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