Commit e1f47492 by BellCodeEditor

auto save

parent 03875439
Showing with 6 additions and 6 deletions
......@@ -3,9 +3,9 @@ import csv
# 创建csv文件
with open('report.csv', "r", encoding="utf-8")as f:
f_csv = csv.reader(f) # 读取csv文件内容
f_csv = list(f_csv) # 转换为列表
pipi = f_csv[7] # 通过索引获取列表信息并赋值给变量pipi
print(pipi) # 打印出结果pipi
for row in f_csv: # for循环
print(row[3]) # 打印出结果
f_csv = csv.reader(f)# 读取csv文件内容
f_csv = list(f_csv)# 转换为列表
pipi = f_csv[7]# 通过索引获取列表信息并赋值给变量pipi
print(pipi) # 打印出结果pipi
for row in f_csv:# for循环
print(row[3])# 打印出结果
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