删除excel中重复项,报错不能通过索引访问“Nonetype”
回答
收藏

删除excel中重复项,报错不能通过索引访问“Nonetype”

k
kenye
2023-12-20 11:16·浏览量:211
k
kenye
发布于 2023-12-20 11:16211浏览

辛苦大佬帮忙看看


Traceback (most recent call last):

File "/Applications/影刀.app/Contents/Resources/app/node_modules/xbot-engine/lib/lib/python3.7/runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)

File "/Applications/影刀.app/Contents/Resources/app/node_modules/xbot-engine/lib/lib/python3.7/runpy.py", line 85, in _run_code

exec(code, run_globals)

File "/Applications/影刀.app/Contents/Resources/app/node_modules/xbot-engine/lib/lib/python3.7/site-packages/xbot_interpreter.py", line 97, in <module>

main()

File "/Applications/影刀.app/Contents/Resources/app/node_modules/xbot-engine/lib/lib/python3.7/site-packages/xbot_interpreter.py", line 59, in main

mod.main(args)

File "/Users/yeky/Library/Application Support/Shadowbot/users/119290316368662530/apps/5e96d26d-55b1-4acd-b851-55e9aad48f81/xbot_robot/process1.py", line 80, in main

xbot_visual.excel.remove_duplicate_row(workbook=excel_instance, column_name="A,B,E", start_row="1", contain_header=True, sheet_name="", _block=("库存数据获取", 65, "删除重复行"))

File "<string>", line 89, in wrapper

File "<string>", line 84, in wrapper

File "<string>", line 1097, in remove_duplicate_row

File "<string>", line 585, in remove_duplicate_row

File "<string>", line 585, in <listcomp>

File "<string>", line 585, in <listcomp>

TypeError: 'NoneType' object is not subscriptable


检查过数据,没有空值




收藏
全部回答1
最新
发布回答
回答