📅  最后修改于: 2022-03-11 14:45:30.602000             🧑  作者: Mango
import docx2txt
# extract text
text = docx2txt.process("file.docx")
# extract text and write images in /tmp/img_dir
text = docx2txt.process("file.docx", "/tmp/img_dir")