from docx import Document w=Document() w.add_section() w.add_section() w.paragraphs[0].add_run('第一個段落') w.paragraphs[1].add_run('第二個段落') w.save(r'D:\word練習\節.docx') #節的定位 節=w.section[2]
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/91818.html
標籤:Python
下一篇:爬蟲第一課
