《python編程快速上手》中的第12章:處理Excel電子表格。
get_highest_row()和get_highest_column()在最新版的openpyxl模塊中已經被刪除了,取而代之的是max_row和max_column兩個方法。
import openpyxl
wb1=openpyxl.load_workbook('附件1-葡萄酒品嚐評分表.xlsx')
sheet1=wb1.get_sheet_by_name('第一組紅葡萄酒品嚐評分')
print(sheet1.max_column)#沒有()