wb=openpyxl.load_workbook('E:\ProgrammerCode\Python\AutomateTheBoringStuff\selenium\AutoArrangementDocument\Source\告警IP列表Top20-1212.xlsx')
sheet=wb.get_sheet_by_name('1211')
告警如下E:/ProgrammerCode/Python/AutomateTheBoringStuff/selenium/AutoArrangementDocument/UseEcxcel.py:13: DeprecationWarning: Call to deprecated function get_sheet_by_name (Use wb[sheetname]). sheet=wb.get_sheet_by_name('1211')
>>> sheet=wb['1211']
>>> sheet.max_row
21