报错:'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()
报错:'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()