Öffnen Sie Word -Dokument Python
from docx import Document
document = Document()
document.save('test.docx')
Magnificent Mole
from docx import Document
document = Document()
document.save('test.docx')
import os
os.startfile('C:\\Path\\To\\file.docx')
import docx2txt
my_text = docx2txt.process("test.docx")
print(my_text)
import textract
text = textract.process("path/to/file.extension")