Commit 0c3563ad by BellCodeEditor

auto save

parent 559fef77
Showing with 11 additions and 4 deletions
message = "诺依,周末一起去看动漫展吧!" import csv
with open(r'C:\Users\Administrator\Desktop\班级成绩.csv.txt','r',encoding='utf-8') as f:
# 请使用索引的知识,取出message所有元素(不用遍历的方式) new=list(csv.reader(f))
\ No newline at end of file # print(new)
score=[]
for i in new[1:]:
sc=int(i[1])
score.append(sc)
sum(score)
print(sum(score))
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