Commit 25386e2e by BellCodeEditor

save project

parent 86c55f13
Showing with 6 additions and 2 deletions
...@@ -5,4 +5,8 @@ data = [["姓名", "语文", "数学", "英语"], ...@@ -5,4 +5,8 @@ data = [["姓名", "语文", "数学", "英语"],
["聪聪", 95, 91, 95]] ["聪聪", 95, 91, 95]]
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)
\ No newline at end of file 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