Commit 928cfbad by BellCodeEditor

auto save

parent 5cf920ab
Showing with 22 additions and 0 deletions
import csv
index = 0
with open('report.csv','r',encoding='utf-8')as file:
f_csv = csv.reader(file)
# print(f_csv)
listf_csv = list(f_csv)
# print(listf_csv)
# print(listf_csv[len(listf_csv)-1])
#皮皮的成绩
for i in listf_csv[len(listf_csv)-1]:
print(i)
#全体同学英语成绩
for i in range(len(listf_csv[0])):
# print(listf_csv[0][i])
if listf_csv[0][i]=='英语':
index = i
# print(i)
for i in range(len(listf_csv)):
print(listf_csv[i][index])
\ 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