Commit 80c5c515 by BellCodeEditor

auto save

parent 3faf4b37
Showing with 19 additions and 2 deletions
"""读取csv文件""""
\ No newline at end of file
# """读取csv文件""""
import csv
with open('report.csv','r',encoding='utf-8') as file:
du=csv.reader(file)
du = list(du)
k=0
s=0
for i in range(len(du)):
if du[i][0]=='小贝':
k=i
break
for i in range(len(du[k])):
print(du[k][i],end=' ')
for y in range(len(du)):
print(du[y][2],end=' ')
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