报错:‘Document‘ object has no attribute ‘add_paragragh‘
from docx import Document class Test(object): def __init__(self): self.doc = Document() def test(self): self.doc.add_paragragh(‘test‘) if __name__ == ‘__main__‘: t = Test() t.test()
原文地址:https://www.cnblogs.com/watalo/p/12677048.html
时间: 2024-10-30 01:19:58