from  docx  import  Document
w=Document(r'F:\word训练\表格.docx')

#删除表
print(len(w.tables))
t=w.tables[0]
t._element.getparent().remove(t._element)
print(len(w.tables))

 

本文版权归去快排Seo www.SEOgurublog.com 所有,如有转发请注明来出,竞价开户托管,seo优化请联系QQ▷61910465