pu369com

2023年10月13日

如何使用Python和Pandas处理SQLite数据库

摘要: 代码: import sqlite3 import pandas as pd conn = sqlite3.connect('database.db') data = {'A':['x','y','z'],'B':[1000,2000,3000],'C':[10,20,30]} df = pd.Da 阅读全文

posted @ 2023-10-13 16:18 pu369com 阅读(140) 评论(0) 推荐(0) 编辑

python实现ppt内容输出为word形式

摘要: 一、只输出文本内容 from pptx import Presentation from docx import Document wordfile = Document() # 给定ppt文件所在的路径 filepath = r"C:\Users\18703\Desktop\智家经分\智家经分v2 阅读全文

posted @ 2023-10-13 12:43 pu369com 阅读(43) 评论(0) 推荐(0) 编辑

python实现docx转pptx(word文档转幻灯片)

摘要: 以前都是手工将word内容复制粘贴到ppt中,实在受够了。 文心一言真是大忽悠,给的转换方案是用docx2pptx库,然而根本没有这个库,倒是可以用我下面的代码生成这个库:-) 网上很多方案是转成图片形式插入ppt,导致无法正常编辑ppt. 于是研究出以下方案: 1.先将word文档的页面设置改为自 阅读全文

posted @ 2023-10-13 12:22 pu369com 阅读(221) 评论(0) 推荐(0) 编辑

导航