Commit ca62ea94 by BellCodeEditor

auto save

parent 3faf4b37
Showing with 14 additions and 2 deletions
"""读取csv文件"""" import csv
\ No newline at end of file
with open('report.csv','r',encoding='utf-8')as file:
f = csv.reader(file)
list_f = list(f)
for i in range(len(list_f[0])):
if list_f[0][i]=='地理':
for j in range(1,len(list_f)):
if int(list_f[j][i]) < 70:
print(list_f[j][0])
\ 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