from docx.enum.text import WD_PARAGRAPH_ALIGNMENT
doc = docx.Document()
paragraph = doc.add_paragraph()
#图片居中设置
paragraph.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
run = paragraph.add_run("")
run.add_picture('zfb.png', width=Inches(2))
doc.save("%s.docx" % "demo")