Commit 27ca8c0d by BellCodeEditor

auto save

parent 3faf4b37
Showing with 10 additions and 2 deletions
"""读取csv文件"""" import csv
\ No newline at end of file
with open('report.csv','r',encoding='utf-8')as f:
read = csv.reader(f)
r = list(read)
#查找地理成绩低于70分的同学名字
for i in range(1,len(r)):
# print(r[i][4])
if int(r[i][4]) < 70:
print(r[i][0])
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