环境
Python 3.6.9
python-docx (0.8.11)
开始
- 安装扩展
1 | $ pip3 install python-docx |
- 创建 docx_extract_img.py,代码如下
1 | # -*- coding: utf-8 -*- |
- 执行
1 | $ python3 docx_extract_img.py |
Yohann's blog
Python 3.6.9
python-docx (0.8.11)
1 | $ pip3 install python-docx |
1 | # -*- coding: utf-8 -*- |
1 | $ python3 docx_extract_img.py |