摘要: 一、场景一,每行数据带表头 现在有如下数据: student_Id,score,rating,class_id 1,60,4,1 1,67,1.5,2 2,45,4,1 2,47,4,2 2,50,4,3 3,100,4,1 3,90,3,2 3,61,4,3 3,85,3,4 现在需求让每一行的数 阅读全文
posted @ 2020-05-31 17:23 xyztank 阅读(5130) 评论(0) 推荐(1) 编辑
摘要: ##比如有如下格式的CSV文件: Row Name Age Country 1 John 20 Australia 2 Peter 20 USA 3 Simon 25 China 4 Alex 21 Germany 一、读取 CSV 文件,输出为字典 import csv import os def 阅读全文
posted @ 2020-05-31 15:47 xyztank 阅读(132) 评论(0) 推荐(0) 编辑