Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Word ドキュメントのデザインを実装する必要があります。python-docx ライブラリを使用して、そのドキュメントのページ レイアウトを 2 列レイアウトにプログラムで設定する必要があります。助けてください。
これに対する解決策を見つけました。1. Document オブジェクトを作成します 2. いくつかの段落を追加します 3. セクション [0] を取得しました 4. cols = sectPr.xpath('./w:cols ') 5. 次に、cols.set(qn('w:num'), "2") を使用して w:cols の 'num' プロパティを設定します。
私のために働いた...