Commit e2e6f9d6 by BellCodeEditor

auto save

parent 3c2381c4
Showing with 2 additions and 1 deletions
...@@ -6,7 +6,7 @@ data = [["姓名", "语文", "数学", "英语"], ...@@ -6,7 +6,7 @@ data = [["姓名", "语文", "数学", "英语"],
with open('scores.csv','w',encoding='utf-8',newline='') as c: with open('scores.csv','w',encoding='utf-8',newline='') as c:
w=csv.writer(c) w=csv.writer(c)
w.writerows(data) w.writerows(data)
f_csv = csv.reader() f_csv = csv.reader(c)
print(f_csv) print(f_csv)
f_csv = list(f_csv) f_csv = list(f_csv)
print(f_csv) print(f_csv)
\ 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