[英]How do i get the value of maximum used rows in a excel sheet
我使用了下面提到的代码,但是它返回的行数包括未使用的代码
maxrows = sheet.max_row
print maxrows
我得到1048026作为值,但使用的行只有278
试试这个:maxrows = sheet.nrows打印maxrows
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.