![](/img/trans.png)
[英]Is there any way to change text direction in table using python-docx?
[英]Is there any way to add a subheading to a table in python-docx?
聲明:我試圖從 JSON 文件生成表,並希望它自動編號副標題。
有沒有辦法讓段落標題下的表格自動編號? 我是否必須對table.style
?
這就是我想要的 output:
我希望它將表格標題自動編號為“3 第三章”下方的“3.1”。
抱歉有任何語法錯誤。 先感謝您。
styleParagraph = document.add_paragraph("Hello it me")
styleParagraph.style = 'Heading 1'
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.