pptx
pptx.util?Inches,Pt
pptx.enum.shapes?MSO_SHAPE
pptx.dml.color?RGBColor
pptx.chart.data?CategoryChartData
pptx.enum.chart?XL_CHART_TYPE
pptx.enum.chart?XL_LEGEND_POSITION
prs?=?pptx.Presentation()
slide1?=?prs.add_slide(prs.slide_layouts[])
slide1.shapes.title.text?=?slide1.shapes.placeholders[].text?=?slide2?=?prs.add_slide(prs.slide_layouts[])
slide2.shapes.title.text?=?content?=?slide2.shapes.placeholders[].text_frame
content.add_paragraph().text?=?content.add_paragraph().text?=?content.add_paragraph().text?=?slide3?=?prs.add_slide(prs.slide_layouts[])
slide3.shapes.title.text?=?table?=?slide3.shapes.add_table(,,Inches(),Inches(),Inches(),Inches()).table
table.cell().text?=?table.cell().text?=?table.cell().text?=?table.cell().text?=?data?=?[{:,:,:},
????????{:?,?:?,?:?},
????????{:?,?:?,?:?}]
i?():
????i>:
????????table.cell(i,).text?=?(i+)
????????table.cell(i,).text?=?data[i][]
????????table.cell(i,).text?=?data[i][]
????????table.cell(i,).text?=?(data[i][])
slide4?=?prs.add_slide(prs.slide_layouts[])
slide4.shapes.title.text?=?shape1?=?slide4.shapes.add_shape(MSO_SHAPE.RECTANGLE,Inches(),Inches(),Inches(),Inches())
fill?=?shape1.fill
fill.solid()
fill.fore_color.rgb?=?RGBColor(,,)
shape1.text_frame.add_paragraph().text?=?p1?=?shape1.text_frame.add_paragraph()
p1.text?=?p1.font.size?=?Pt()
shape2?=?slide4.shapes.add_shape(MSO_SHAPE.RECTANGLE,Inches(),Inches(),Inches(),Inches())
fill?=?shape2.fill
fill.solid()
fill.fore_color.rgb?=?RGBColor(,,)
shape2.text_frame.add_paragraph().text?=?p2?=?shape2.text_frame.add_paragraph()
p2.text?=?p2.font.size?=?Pt()
shape3?=?slide4.shapes.add_shape(MSO_SHAPE.RECTANGLE,Inches(),Inches(),Inches(),Inches())
fill?=?shape3.fill
fill.solid()
fill.fore_color.rgb?=?RGBColor(,,)
shape3.text_frame.add_paragraph().text?=?p3?=?shape3.text_frame.add_paragraph()
p3.text??=?p3.font.size?=?Pt()

2024-10-21