Open a Word Document Using Python [duplicate]
问题 This question already has answers here : Open document with default OS application in Python, both in Windows and Mac OS (13 answers) Closed 2 years ago . I am trying to automatically open a Word Document in Python. I am very new to programming and I heard this site helped people who had trouble with it. I have looked at various questions and have found this: DummyFile = path_to_docx with open(DummyFile) as f: source_stream = io(f.read()) document = doc(source_stream) source_stream.close()