摘要:
from docx import Document from docx.oxml.ns import qn #中文字体 w=Document() table=w.add_table(3,3,style='Medium Grid 1 Accent 1') table_head=table.rows[0 阅读全文
posted @ 2020-07-06 18:29
马蹄哒哒
阅读(1787)
评论(0)
推荐(0)
摘要:
from docx import Document from docx.enum.style import WD_STYLE_TYPE w=Document() styles=w.styles #生成所有的样式表 for style in styles: if style.type==WD_STYL 阅读全文
posted @ 2020-07-06 18:15
马蹄哒哒
阅读(166)
评论(0)
推荐(0)
摘要:
from docx import Document from docx.enum.table import WD_CELL_VERTICAL_ALIGNMENT from docx.enum.text import WD_PARAGRAPH_ALIGNMENT w=Document(r'D:\wor 阅读全文
posted @ 2020-07-06 17:54
马蹄哒哒
阅读(209)
评论(0)
推荐(0)
摘要:
from docx import Document from docx.shared import Cm from docx.enum.table import WD_TABLE_ALIGNMENT #设置表格对齐方式 w=Document(r'D:\word练习\练习.docx') table=w 阅读全文
posted @ 2020-07-06 16:52
马蹄哒哒
阅读(611)
评论(0)
推荐(0)

浙公网安备 33010602011771号