before_calculate方法

before_calculate(sheet_index, row_index, col_index)

在计算一个单元格之前执行此方法来处理业务。

def before_calculate(self, sheet_index, row_index, col_index):
    ...
范围 类型 描述
sheet_index int 单元格所属工作表的索引。
row_index int 单元格的行索引
col_index int 单元格的列索引

也可以看看