摘要:
from docx import Document from docx.shared import Cm w=Document(r' ') w.tables[0].add_row() #给表格增加一行 w.tables[0].add_column(Cm(5)) #给表哥增加一列 print(len( 阅读全文
posted @ 2020-07-03 11:36
马蹄哒哒
阅读(760)
评论(0)
推荐(0)
摘要:
from docx import Document w=Document(r'F:\word练习\a.docx') t=\ [ ['姓名','性别','年龄'], ['张三','男',23], ['李四','女',45], ['王五','男',60] ] r=4;c=3 table=w.add_ta 阅读全文
posted @ 2020-07-03 11:25
马蹄哒哒
阅读(154)
评论(0)
推荐(0)
摘要:
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT from docx import Document w=Document(r'文件路径') picture=w.paragraphs[1].add_run().add_picture(r'') w.p 阅读全文
posted @ 2020-07-03 11:11
马蹄哒哒
阅读(712)
评论(0)
推荐(0)

浙公网安备 33010602011771号