Commit 353ae3ca by BellCodeEditor

auto save

parent 2aa32473
Showing with 10 additions and 15 deletions
'''import csv
import csv
subject = ["姓名", "语文", "数学", "英语"]
score1 = ["小贝", 98, 99, 92]
score2 = ["聪聪", 95, 91, 95]
with open('score.csv','w',encoding='utf-8')as file:
subject = [["姓名", "语文", "数学", "英语"],
["小贝", 98, 99, 92],
["聪聪", 95, 91, 95]]
with open('score.csv','w',encoding='utf-8',newline='')as file:
write = csv.writer(file)
write.writerow(subject)
write.writerow(score1)
# write.writerow(score2) drtyjkoiuredfghjkkjhgfdsdfghj'''
\ No newline at end of file
write.writerows(subject)
\ No newline at end of file
import turtle
turtle.pendown()
turtle.circle(50,180)
turtle.up()
#turtle.done()
姓名,语文,数学,英语
小贝,98,99,92
聪聪,95,91,95
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