Python openpyxl遍历工作薄(workbook)

import openpyxl

wb = openpyxl.load_workbook('/Desktop/test.xlsx')
sheet_list = wb.sheetnames
for sheet in sheet_list:
    ws = wb[sheet]
    print(ws)

你可能感兴趣的:(python)