首页 > python定义一个读取excel函数,传入地址和sheet页名称,如何返回sheet页对象

python定义一个读取excel函数,传入地址和sheet页名称,如何返回sheet页对象

python定义一个读取excel函数,传入地址和sheet页名称,如何返回sheet页对象


可以尝试一下pandas里面的ExcelWriter

from pandas import ExcelWriter
writer = ExcelWriter(filename)
mysheet = 'sheet1'
sheet = writer.sheets[mysheet]
...

就酱

【热门文章】
【热门文章】