关注
码龄
粉丝数
原力等级 --
被采纳
被点赞
采纳率
m0_63539729
2022-04-28 19:44
采纳率: 87.5%
浏览 1211
首页
Python
已结题
openpyxl:AttributeError: ‘MergedCell’ object attribute ‘value’ is read-only报错解决办法
python
我搜了解决办法但是没看懂
大约620是什么意思?要在哪里添加这段代码呢?非常感谢
收起
写回答
好问题
0
提建议
关注问题
微信扫一扫
点击复制链接
分享
邀请回答
编辑
收藏
删除
收藏
举报
1
条回答
默认
最新
关注
码龄
粉丝数
原力等级 --
被采纳
被点赞
采纳率
lazyn
2022-04-28 20:18
关注
是openpyxl库的一个函数
在openpyxl库文件夹的worksheet文件夹下
本回答被题主选为最佳回答
, 对您是否有帮助呢?
本回答被专家选为最佳回答
, 对您是否有帮助呢?
本回答被题主和专家选为最佳回答
, 对您是否有帮助呢?
解决
3
无用
评论
打赏
微信扫一扫
点击复制链接
分享
举报
评论
按下Enter换行,Ctrl+Enter发表内容
查看更多回答(0条)
向“C知道”追问
报告相同问题?
提交
关注问题
openpyxl
:
AttributeError
: ‘
Merge
d
Cell
’
object
attribute
‘
value
’ is
read
-only
2020-12-20 15:23
宁少有为的博客
openpyxl
:
AttributeError
: ‘
Merge
d
Cell
’
object
attribute
‘
value
’ is
read
-only 使用
openpyxl
读取excel数据时,报了一个错误:
openpyxl
:
AttributeError
: ‘
Merge
d
Cell
’
object
attribute
‘
value
’ is
read
-...
解决使用
openpyxl
在写入excel文件时的
AttributeError
: ‘
Merge
d
Cell
‘
object
attribute
‘
value
‘ is
read
-only
报错
2023-03-27 11:01
蔡虚昆的博客
解决
openpyxl
报错
的问题
AttributeError
: ‘
Merge
d
Cell
‘
object
attribute
‘
value
‘ is
read
-only
2024-05-31 17:14
志飞的博客
先取消所有的合并,数据写入后再合并(这种情况,可能13列数据所在的行和14列不在同一行的情况)网上搜到的都是说改
openpyxl
的worksheet.py源码,我改了,发现没有效果,后来经过研究,可以通过以下两种办法来解决。...
python
未合并单元格却出现:
AttributeError
: ‘
Merge
d
Cell
‘
object
attribute
‘
value
‘ is
read
-only 如何处理
2023-03-16 09:34
凉城美金的博客
也没什么问题,后来看别人回答:是excel出现了问题,然后我又把excel给重新建立,果然没有
报错
,原因可能是上次合并单元格的时候,表面上它的格式已经被删除,但是却没有被删除。
openpyxl
存储数据 + pandas 存储数据 +
AttributeError
: ‘
Merge
d
Cell
‘
object
attribute
‘
value
‘ is
read
-only
2022-05-27 14:41
安小枫的博客
openpyxl
存储数据 + pandas 存储数据
Python
读取exce文件
报错
AttributeError
: ‘
Merge
d
Cell
‘
object
attribute
‘
value
‘ is
read
-only
2020-11-13 18:56
Lindsay哈的博客
Python
读取exce文件
报错
AttributeError
: ‘
Merge
d
Cell
’
object
attribute
‘
value
’ is
read
-only。 如果确定不是脚本问题,可能是excel文件的问题,原因是单元格不能合并,(可能是宏影响,建议开启所有宏)
openpyxl
出现‘
Merge
d
Cell
‘
object
attribute
‘
value
‘ is
read
-only的写入办法,亲测有效
2023-03-17 15:06
善财童子SIXSIXSIX的博客
openpyxl
报错
AttributeError
: '
Merge
d
Cell
'
object
attribute
'
value
' is
read
-only的处理方法。
python
合并单元格出现:‘
Merge
d
Cell
‘
object
attribute
‘
value
‘ is
read
-only 如何处理
2020-10-29 13:37
C01acat的博客
from
openpyxl
import Workbook wb = Workbook() ws = wb.active ws.
merge
_
cell
s('A2:A99') ws['A2'] = 'TEST' # 给合并开头的的格子赋值,成功 wb.save("D:test.xlsx") 可正常运行,但如果将ws['
Openpyxl
报错
: ‘
Merge
d
Cell
‘
object
attribute
‘hyperlink‘ is
read
-only]
2020-07-27 20:32
CDA曹鑫的博客
问题描述:就是你的Excel单元格里面有合并单元格,你在用不对的方式插入内容。 解决方案:把合并的单元格取消合并就好了。 合并单元格的插入只有最开始那个插入才可以。
python
openpyxl
load_workbook报
AttributeError
: '
Merge
d
Cell
'
object
attribute
'hyperlink' is
read
-only
2019-10-15 17:06
小菜菜1223的博客
这个问题真的是困扰,我的
openpyxl
版本是2.6.4 找了很多办法,最有用的是让把版本回复到2.5.14 (但是恢复了之后可能会出现样式错乱) 解决: 根据错误信息,我们去找到这个包的这一块代码 我们把ws打印出来...
Python
修改合并单元格值时
报错
:‘
Merge
d
Cell
‘
object
attribute
‘
value
‘ is
read
-only
2023-09-28 13:34
Mr_不负此舟的博客
这里面是假设B列中存在多个独立的合并单元格 import
openpyxl
wb =
openpyxl
.load_workbook('example.xlsx') ws = wb['sheet2']
merge
d_
cell
_range = list(ws.
merge
d_
cell
s.ranges)
merge
d_
cell
_B2 = [
cell
for
cell
...
【
Python
】解决
Python
报错
:
AttributeError
: ‘bool‘
object
has no
attribute
‘xxx‘
2024-05-31 17:40
I'mAlex的博客
解决
Python
报错
:
AttributeError
: 'bool'
object
has no
attribute
'xxx'
【
Python
】解决
Python
报错
:
AttributeError
: ‘dict‘
object
has no
attribute
‘xxx‘
2024-05-31 17:29
I'mAlex的博客
解决
Python
报错
:
AttributeError
: 'dict'
object
has no
attribute
'xxx'
【
Python
】解决
Python
报错
:
AttributeError
: ‘str‘
object
has no
attribute
‘xxx‘
2024-05-31 17:13
I'mAlex的博客
成功解决
Python
报错
:
AttributeError
: ‘str‘
object
has no
attribute
‘xxx‘。`
AttributeError
: 'str'
object
has no
attribute
'xxx'` 错误发生的常见原因包括:1. **属性不存在**:尝试访问字符串类型对象中不...
没有解决我的问题,
去提问
向专家提问
向AI提问
付费问答(悬赏)服务下线公告
◇ 用户帮助中心
◇ 新手如何提问
◇ 奖惩公告
问题事件
关注
码龄
粉丝数
原力等级 --
被采纳
被点赞
采纳率
已结题
(查看结题原因)
4月28日
关注
码龄
粉丝数
原力等级 --
被采纳
被点赞
采纳率
已采纳回答
4月28日
关注
码龄
粉丝数
原力等级 --
被采纳
被点赞
采纳率
创建了问题
4月28日