row object没有merge方法,cell object才有merge方法:
https://python-docx.readthedocs.io/en/latest/api/table.html#id1
table = doc.add_table(6,6)
cell0 = table.cell(0,0)
cell3 = table.cell(0,3)
cell0.merge(cell3)
【 在 feng321 (sfdf) 的大作中提到: 】
: from docx import Document
: doc = Document()
: table = doc.add_table(6,6)
: ...................
--
FROM 119.233.180.*