Commit 0e76e53a by BellCodeEditor

save project

parent 6e974af3
Showing with 6 additions and 4 deletions
"""读取csv文件""""
import csv import csv
with open("repor.csv","r",encoding="utf-8") as file: with open("report.csv","r",encoding="utf-8") as file:
read = csv.reader(file)
\ No newline at end of file data = list(read)
print(data)
print(data[5][0]+"的语文成绩是"+data[5][1]+"分")
\ 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