Commit 4aa6844a by BellCodeEditor

save project

parent 130aed71
Showing with 17 additions and 5 deletions
import csv import csv
data = [["姓名", "语文", "数学", "英语"], with open("score.csv","r",encoding="utf-8",newline="") as csvfile:
["小贝", 98, 99, 92], reader=csv.reader(csvfile)
["聪聪", 95, 91, 95]] reader=list(reader)
with open("score.csv","w",encoding="utf-8",newline="") as csvfile: pipi=reader[7]
writer=csv.writer(csvfile) for row in reader:
print(row[3])
writer.writerows(data) writer.writerows(data)
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
pen.speed('fast')
\ No newline at end of file
姓名,语文,数学,英语
小贝,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