import openpyxl as op
wb = op.Workbook('4.5pachong.xlsx')
ws = wb.active
ws.append(['公司名称','薪资'])
wb.save()
结果给我返回
AttributeError: 'NoneType' object has no attribute 'append'
append咋就不能用了呢
import openpyxl as op
wb = op.Workbook('4.5pachong.xlsx')
ws = wb.active
ws.append(['公司名称','薪资'])
wb.save()
结果给我返回
AttributeError: 'NoneType' object has no attribute 'append'
append咋就不能用了呢
亲亲,第二行尝试使用load_workbook方法