摘要: from pptx import Presentationppt = Presentation(r'C:/Users/13375/Desktop/python/model.pptx')shape = ppt.slides[0].shapes# for i in shape:# print(i.tex 阅读全文
posted @ 2020-02-21 20:44 悠悠的奶茶 阅读(244) 评论(0) 推荐(0)
摘要: # 导入库from pptx import Presentationfrom pptx.util import Inchesppt = Presentation() #新建幻灯片slide = ppt.slides.add_slide(ppt.slide_layouts[1]) #插入新的幻灯片页面 阅读全文
posted @ 2020-02-21 20:42 悠悠的奶茶 阅读(1009) 评论(0) 推荐(0)
摘要: from io import StringIOfrom pdfminer.pdfinterp import PDFResourceManager,process_pdffrom pdfminer.converter import TextConverterfrom pdfminer.layout i 阅读全文
posted @ 2020-02-21 20:40 悠悠的奶茶 阅读(832) 评论(0) 推荐(0)
摘要: # 简单的模板套用-适用于少量的改变from docx import Documentfrom docx.enum.text import WD_ALIGN_PARAGRAPHfrom docx.shared import Ptfrom docx.oxml.ns import qndog_list 阅读全文
posted @ 2020-02-21 20:38 悠悠的奶茶 阅读(275) 评论(0) 推荐(0)
摘要: from win32com.client import Dispatch,constants,gencachedocx_path = (r'C:/Users/13375/Desktop/python/长恨歌.docx')pdf_path = (r'C:/Users/13375/Desktop/pyt 阅读全文
posted @ 2020-02-21 20:36 悠悠的奶茶 阅读(288) 评论(0) 推荐(0)
摘要: from docx import Document# 读取全文本# document = Document(r'C:\Users\13375\Desktop\python\长恨歌.docx')# all_paragraphs = document.paragraphs# for paragraph 阅读全文
posted @ 2020-02-21 20:32 悠悠的奶茶 阅读(2295) 评论(0) 推荐(0)
摘要: from pptx import Presentationfrom pptx.util import Inches,Ptppt = Presentation()slide = ppt.slides.add_slide(ppt.slide_layouts[1]) #在ppt中插入一个幻灯片页body_ 阅读全文
posted @ 2020-02-21 20:29 悠悠的奶茶 阅读(319) 评论(0) 推荐(0)
摘要: import pandas as pd# a = pd.Series(['a','b','c','d'])# print(a)# b = pd.DataFrame({'NAME':['tom','wendy','dancy'],# 'GENDER':['MALE','FEMALE','FEMALE' 阅读全文
posted @ 2020-02-21 20:27 悠悠的奶茶 阅读(340) 评论(0) 推荐(0)
摘要: import pandas as pd import numpy as npimport matplotlib.pyplot as plte_file = pd.ExcelFile(r'C:/Users/13375/Desktop/python/成绩表.xlsx')data = e_file.par 阅读全文
posted @ 2020-02-21 20:23 悠悠的奶茶 阅读(526) 评论(0) 推荐(0)
摘要: import matplotlib.pyplot as pltplt.rcParams['font.sans-serif'] = ['SimHei'] # 用来正常显示中文标签data = ['2020/2/1','2020/2/2','2020/2/3','2020/2/4','2020/2/5' 阅读全文
posted @ 2020-02-21 20:21 悠悠的奶茶 阅读(263) 评论(0) 推荐(0)