Commit d2cbcad7 by BellCodeEditor

auto save

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