Commit d2cbcad7 by BellCodeEditor

auto save

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