且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用python win32向Excel添加注释

更新时间:2023-12-06 14:34:58

添加注释不是方法,而是属性。

Add comment is a method not a property.

ws = wb.Worksheets('sheet1')
ws.Cells(1,1).AddComment("comment")

只需阅读 MSDN中的文档