from pptx import Presentation
from pptx.util import Cm, Pt, Inches
import numpy as np
import pandas as pd
from pptx.enum.text import PP_ALIGN
from pptx.enum.text import MSO_ANCHOR
from pptx.dml.color import RGBColor
# 批量新建PPT
prs = Presentation()
blank_slide = prs.slide_layouts[6]
for n in range(0,532):
slide = prs.slides.add_slide(blank_slide)
# 在指定位置添加文本框
textbox = slide.shapes.add_textbox(left = Cm(0.2),
top = Cm(0),
width = Cm(20)<