有没有什么方法可以使用openpyxl获取.xlsx表单中的行数和列数?
有没有什么方法可以使用openpyxl获取.xlsx表单中的行数和列数? 在xlrd中,
sheet.ncols sheet.nrows
会给列和行数。 在openpyxl中有没有这样的方法?
如果sheet
是要查找的行数和列数的工作表,则可以执行以下操作:
rows = sheet.max_row column = sheet.max_column
有没有什么方法可以使用openpyxl获取.xlsx表单中的行数和列数? 在xlrd中,
sheet.ncols sheet.nrows
会给列和行数。 在openpyxl中有没有这样的方法?
如果sheet
是要查找的行数和列数的工作表,则可以执行以下操作:
rows = sheet.max_row column = sheet.max_column