[英]Write Excel Cell Comment using Python on Linux?
I am using Python
in a Linux (Ubuntu) environment.我在 Linux (Ubuntu) 环境中使用
Python
。
How do I go about writing a comment into a cell in an Excel
file (say, MyFile.xls
)?我如何 go 关于将评论写入
Excel
文件(例如MyFile.xls
)中的单元格?
I know that it is possible to write values .我知道可以写值。 Yet, how do I go about writing a comment?
然而,我该怎么写评论呢?
On Windows (with Excel installed) you could use COM from Python: this class wraps it nicely for you . On Windows (with Excel installed) you could use COM from Python: this class wraps it nicely for you .
But on Linux, you'll need to use xlwt .但是在 Linux 上,您需要使用xlwt 。
I'm looking into this myself and found https://bitbucket.org/ericgazoni/openpyxl/wiki/Home .我自己正在调查这个,发现https://bitbucket.org/ericgazoni/openpyxl/wiki/Home 。 It is a new library that allows editing xlsx files.
这是一个允许编辑 xlsx 文件的新库。 I'm not sure if it allows editing comments though.
我不确定它是否允许编辑评论。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.