# python-docx **Repository Path**: nicefeiniu/python-docx ## Basic Information - **Project Name**: python-docx - **Description**: 官方 python-docx 的合并merge request 以及增加部分功能 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-07 - **Last Updated**: 2025-04-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # python-docx *python-docx* is a Python library for reading, creating, and updating Microsoft Word 2007+ (.docx) files. ## Installation ``` pip install git+https://gitee.com/nicefeiniu/python-docx ``` OR ```shell pip install git+https://github.com/nciefeiniu/python-docx ``` ## Example ```python >>> from docx import Document >>> document = Document() >>> document.add_paragraph("It was a dark and stormy night.") >>> document.save("dark-and-stormy.docx") >>> document = Document("dark-and-stormy.docx") >>> document.paragraphs[0].text 'It was a dark and stormy night.' ``` More information is available in the [python-docx documentation](https://python-docx.readthedocs.org/en/latest/)