gpt4 book ai didi

python - 在 Linux 上使用 Python 读取 Excel 单元格注释?

转载 作者:可可西里 更新时间:2023-11-01 11:47:46 24 4
gpt4 key购买 nike

我在 Linux (Ubuntu) 环境中使用 Python

如何阅读存储在电子表格 MyFile.xls 单元格 A5 中的 comment(如果重要,这文件以 Excel 2003 格式)?

最佳答案

我本来想说 xlrd 太糟糕了不处理评论,但后来我偶然发现了这个 What's the best way to extract Excel cell comments using Perl or Ruby? .

关键段落:

The Python xlrd library will parse cell comments (if you turn on xlrd.sheet.OBJ_MSO_DEBUG, you'll see them), but it doesn't expose them from the API. You could either parse the dump or hack on it a bit so you can get to them programmatically.

关于python - 在 Linux 上使用 Python 读取 Excel 单元格注释?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6046797/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com