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))
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/98278.html
標籤:Python
上一篇:洗掉表格的行或者列
下一篇:給表的單元格賦值
