Commit e6bdad7b by BellCodeEditor

auto save

parent 06c01507
Showing with 8 additions and 2 deletions
...@@ -6,4 +6,10 @@ data = [["姓名", "语文", "数学", "英语"], ...@@ -6,4 +6,10 @@ data = [["姓名", "语文", "数学", "英语"],
with open("123.csv","w",encoding = "utf-8",newline = "") as a: with open("123.csv","w",encoding = "utf-8",newline = "") as a:
writer = csv.writer(a) writer = csv.writer(a)
writer.writerow(data) writer.writerow(data)
\ No newline at end of file
with open("123.csv","r",encoding = "utf-8") as f:
f_csv = csv.reader(f)
paint(f_csv)
f_csv = list(f_csv)
paint(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