Commit 7192aed6 by BellCodeEditor

save project

parent 3faf4b37
Showing with 11 additions and 2 deletions
"""读取csv文件"""" from csv import *
\ No newline at end of file
with open("report.csv","r",newline='',encoding="utf-8") as csvfile:
f_csv=reader(csvfile)
data=list(f_csv)
pl=0
for i in range(1,len(data)):
pl+=int(data[i][2])
pl=pl/(len(data)-1)
print(int(pl*10)/10)
\ 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