摘要: 编程环境: attrs==17.4.0 lxml==4.1.1 pdfminer3k==1.3.4 pluggy==0.6.0 ply==3.11 py==1.5.2 pytest==3.4.1 python-docx==0.8.6 six==1.11.0 from pdfminer.pdfpars 阅读全文
posted @ 2020-12-01 15:35 风雨无阻! 阅读(68) 评论(0) 推荐(0) 编辑
摘要: import os from PyPDF2 import PdfFileReader, PdfFileWriter dir_name = '保存文件目录' if not os.path.exists(dir_name): os.mkdir(dir_name) # 用pypdf2分割PDF pdf_r 阅读全文
posted @ 2020-12-01 14:36 风雨无阻! 阅读(58) 评论(0) 推荐(0) 编辑
摘要: import win32com.client as win32 import os word = win32.gencache.EnsureDispatch('Word.Application') # 启动word对象应用 word.Visible = False path = 'D:\\progr 阅读全文
posted @ 2020-12-01 14:33 风雨无阻! 阅读(42) 评论(0) 推荐(0) 编辑