Commit ac7fd72c by BellCodeEditor

save project

parent 3faf4b37
Showing with 14 additions and 2 deletions
import csv
姓名,语文,数学,英语,地理,历史,政治,生物,化学,物理 姓名,语文,数学,英语,地理,历史,政治,生物,化学,物理
小贝,99,100,94,90,88,89,96,98,96 小贝,99,100,94,90,88,89,96,98,96
李强,86,95,96,84,86,63,78,66,74 李强,86,95,96,84,86,63,78,66,74
...@@ -5,4 +7,14 @@ ...@@ -5,4 +7,14 @@
聪聪,65,76,97,66,73,78,58,66,69 聪聪,65,76,97,66,73,78,58,66,69
波奇,74,67,61,72,66,81,75,79,80 波奇,74,67,61,72,66,81,75,79,80
九尾,88,85,80,78,74,90,81,69,70 九尾,88,85,80,78,74,90,81,69,70
皮皮,77,87,83,69,90,79,71,74,69 皮皮,77,87,83,69,90,79,71,74,69
\ No newline at end of file
with open("123.csv","w",encoding = "utf-8",newline = "") as a:
writer = csv.writer(a)
writer.writerow(data)
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