Skip to main content
 首页 » 编程设计

python之在 Linux 上使用 Python 编写 Excel 单元格注释

2025年05月04日9emanlee

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

如何将注释写入Excel 文件(例如,MyFile.xls)的单元格中?

我知道可以写值。然而,我该如何着手撰写评论?

请您参考如下方法:

在 Windows(安装了 Excel)上,您可以从 Python 使用 COM:this class wraps it nicely for you .

但在 Linux 上,您需要使用 xlwt .