#删除某个段落2021-06-01#https://github.com/python-openxml/python-docx/issues/33def delete_paragraph(paragraph): p = paragraph._element p.getparent().remove(p) # p._p = p._element = None paragraph._p = paragraph._element = None