2023年4月19日

openpyxl 快速上手教程

摘要: openpyxl wb = Workbook()#新建工作薄ws = wb.active #获取活动工作表wb['Sheet1'] #通过名字获取工作表wb.worksheets[0] #通过索引获取工作表 ws.append([]) #追加一行数据ws.save() #报错呢到指定路径###读取w 阅读全文

posted @ 2023-04-19 14:36 Mlianga 阅读(384) 评论(0) 推荐(0)

python-docx 快速入手教程

摘要: python-docx 使用文档地址:https://www.osgeo.cn/python-docx/user/documents.html 安装:pip install python-docx from docx import Document 提取文字 打开文件doc = Document(' 阅读全文

posted @ 2023-04-19 14:33 Mlianga 阅读(230) 评论(0) 推荐(0)

导航