get_threaded_comments方法

get_threaded_comments(cell_name)

按单元格名称获取线程注释。

返回

def get_threaded_comments(self, cell_name):
    ...
范围 类型 描述
cell_name str 单元格的名称。

例子


threadedComments2 = comments.get_threaded_comments("B2")
for i in range(len(threadedComments2)):
    tc = threadedComments2[i]
    note = tc.notes

get_threaded_comments(row, column)

按行和列索引获取线程评论。

返回

def get_threaded_comments(self, row, column):
    ...
范围 类型 描述
row int 行索引。
column int 列索引。

例子


threadedComments1 = comments.get_threaded_comments(1, 1)
for i in range(len(threadedComments1)):
    tc = threadedComments1[i]
    note = tc.notes

也可以看看