摘要:
from pptx import Presentation prs=Presentation('名字.pptx') for slide in prs.slides: # 读取每一页幻灯片 for shape in slide.shapes: #获取每一页的内容 if shape.has_text_f 阅读全文
posted @ 2020-06-05 22:32
misherry
阅读(269)
评论(0)
推荐(0)
摘要:
import pdfplumber pdf=pdfplumber.open(',,,,,,,.pdf') first_page=pdf.pages[0] print(first_page.extract_text()) #打印第一页内容 #提取其中的表格 first_page.extract_tab 阅读全文
posted @ 2020-06-05 22:19
misherry
阅读(947)
评论(0)
推荐(0)
摘要:
1 from docx import Document 2 3 word=Document() 4 5 word.add_heading('一级标题',level=1) #增加一级标题 6 7 p1=word.add_paragraph('这是第一段') 8 9 p2=word.add_paragr 阅读全文
posted @ 2020-06-05 21:51
misherry
阅读(470)
评论(0)
推荐(0)
摘要:
1 from docx import Document 2 3 word=Document(',,,,,,.docx') 4 5 paragraphs=word.paragraphs #返回一个列表,有多少段就有多少个值 6 7 for i in paragraphs: 8 9 print(i.te 阅读全文
posted @ 2020-06-05 21:42
misherry
阅读(299)
评论(0)
推荐(0)
摘要:
1 from docx import Document 2 3 word =Document(r'表格名称.docx') 4 5 #读取表格 6 7 tables=word.tables 8 9 for i in tables[:]: 10 11 for j,row in enumerate(i.r 阅读全文
posted @ 2020-06-05 21:23
misherry
阅读(428)
评论(0)
推荐(0)

浙公网安备 33010602011771号