Python 3.5.2 TypeError:'int'对象不可调用

时间:2016-10-24 07:01:31

标签: python excel openpyxl

当导入模块openpyxl时,我想获得最高行。然后它结果是一个错误。

enter image description here

1 个答案:

答案 0 :(得分:1)

错误不言自明,max_row无法调用。

# do This
print (sheet.max_row)

# instead of
print (sheet.max_row())