Ai
5 Star 6 Fork 1

Gitee 极速下载/python-docx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/python-openxml/python-docx
克隆/下载
doc-add-comment.feature 535 Bytes
一键复制 编辑 原始数据 按行查看 历史
Steve Canny 提交于 2025-06-10 09:05 +08:00 . comments: add Comment.text
Feature: Add a comment to a document
In order add a comment to a document
As a developer using python-docx
I need a way to add a comment specifying both its content and its reference
Scenario: Document.add_comment(runs, text, author, initials)
Given a document having a comments part
When I assign comment = document.add_comment(runs, "A comment", "John Doe", "JD")
Then comment is a Comment object
And comment.text == "A comment"
And comment.author == "John Doe"
And comment.initials == "JD"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/python-docx.git
git@gitee.com:mirrors/python-docx.git
mirrors
python-docx
python-docx
master

搜索帮助