openpyxl程序无法写入数据 原因:没有保存 wb=openpyxl.load_workbook(path) sheet=wb['Sheet1'] sheet.cell(1,2,'test') #保存 wb.save('*.xlsx')