一、报错: File "G:/station/6系列装置信息明细.py", line 12, in <module> workbook.save(r‘.\6系列装置明细表.xls‘) File "G:\python\lib\site-packages\xlwt\Workbook.py", line 710, in save doc.save(filename_or_stream, self.get_biff_data()) File "G:\python\lib\site-packages\xlwt\Workbook.py", line 680, in get_biff_data self.worksheets[self.active_sheet].selected = True IndexError: list index out of range 二、数据插入excel