2021年5月17日

Python读写excel文件

摘要: import pandas as pd import xlrd from xlutils.copy import copy # 读excel def readExcel(): df = pd.read_excel(r'resource/read-excel.xls') for i in df.val 阅读全文

posted @ 2021-05-17 18:45 northwest 阅读(39) 评论(0) 推荐(0) 编辑

Python读写csv表格文件

摘要: 很简单的小功能,就是以各种方式读写csv表格,方便处理数据。 代码: import csv,codecs from itertools import islice # !介绍:此文件满足读取.csv文件的部分需求 # !注意:此文件中存在代码互斥的情况,请删除不需要的功能以避免互斥 def read 阅读全文

posted @ 2021-05-17 15:37 northwest 阅读(228) 评论(0) 推荐(0) 编辑

导航