我对 python-docx 库有疑问。我正在关注此页面的示例,但它似乎不起作用。任何人都可以提供一些帮助吗?
>>> all_runs[0]
<docx.text.Run object at 0x7f49b899c5d0>
>>> play=all_runs[0]
>>> play.add_break(WD_BREAK.PAGE)
>>> play.breaks
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Run' object has no attribute 'breaks'