資料源為回圈生成的串列,希望輸出到excel中,但碰到個報錯 string index out of range ,實在找不到在哪里,求助各位大神

['263643', 'SE*CE(189購物中心店)', '上海******有限公司', 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 456.0, 1.0, 0.0017, 0.78, 228.0, 1.0, 0.0007, 0.16]
每個list長度為19
for a in range(len(column_title)): # 列名
work_sheet.write(0, a, column_title[a])
for i in range(0, 100): # 回圈填充單元格
data = row_content[i]
for j in range(0, 18):
work_sheet.write(i+1, j, data[j])
work_book.save(save_path)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/231179.html
下一篇:【求助】樹莓派4B下python3.73安裝好pywin32和pypiwin32后 import win32api提示win32api module找不到
