需求:循环遍历输出第5行的数据: from openpyxl import load_workbookfile = load_workbook(filepath)sheet = file.worksheets[0]for cell in sheet[5]: print(cell.value)