Commit 353ae3ca by BellCodeEditor

auto save

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