Commit 176edf01 by BellCodeEditor

save project

parent fdabce5d
Showing with 14 additions and 3 deletions
"""读取csv文件""""
\ No newline at end of file
import csv
data=[[皮皮,77,87,83,69,90,79,71,74,69],[小贝,99,100,94,90,88,89,96,98,96],[李强,86,95,96,84,86,63,78,66,74],[小依,75,88,94,54,77,97,86,77,89],[鸣人,65,76,97,66,73,78,58,66,69],[波奇,74,67,61,72,66,81,75,79,80],[九尾,88,85,80,78,74,90,81,69,70],[皮皮,77,87,83,69,90,79,71,74,69]]
with open('scores.csv','r',encoding="utf-8")as file:
f_csv=csv.reader(f)
print(f_csv)
f_csv=list(f_csv)
print(f_csv)
print(皮皮)
for row in data:
print[row(3)]
\ No newline at end of file
......@@ -2,7 +2,7 @@
小贝,99,100,94,90,88,89,96,98,96
李强,86,95,96,84,86,63,78,66,74
小依,75,88,94,54,77,97,86,77,89
聪聪,65,76,97,66,73,78,58,66,69
鸣人,65,76,97,66,73,78,58,66,69
波奇,74,67,61,72,66,81,75,79,80
九尾,88,85,80,78,74,90,81,69,70
皮皮,77,87,83,69,90,79,71,74,69
\ 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