会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
十一的杂文录
博客园
首页
新随笔
联系
管理
订阅
2021年1月26日
Python-docx插入图片报错“NameError: name 'Inches' is not defined”
摘要: 在使用 Python-docx 库操作Word文档时,需要插入图片,在设置宽高时,报错“NameError: name 'Inches' is not defined” 原因是:没有 导入 Inches 模块 解决方法: from docx.shared import Inches
阅读全文
posted @ 2021-01-26 22:25 十一的杂文录
阅读(1127)
评论(0)
推荐(0)
编辑
公告