diff --git a/read_csv.py b/read_csv.py index ca99da3..a9c18bb 100644 --- a/read_csv.py +++ b/read_csv.py @@ -1 +1,10 @@ -"""读取csv文件"""" \ No newline at end of file +"""读取csv文件""" +import csv + +with open('report.csv','r',encoding='utf_8') as f: + g=csv.reader(f) + print(g) + g=list(g) + print(g[7]) + for i in range(8): + print(g[i][3],end=' ') \ No newline at end of file