unsupported operand type(s) for +=: 'MobileElement' and 'in
回答
收藏

unsupported operand type(s) for +=: 'MobileElement' and 'in

E
Eric-123
2023-12-07 14:27·浏览量:175
E
Eric-123
发布于 2023-12-07 14:27175浏览

unsupported operand type(s) for +=: 'MobileElement' and 'int'

Traceback (most recent call last):

 File "C:\Program Files (x86)\ShadowBot\shadowbot-5.14.30\python\lib\runpy.py", line 193, in _run_module_as_main

   "__main__", mod_spec)

 File "C:\Program Files (x86)\ShadowBot\shadowbot-5.14.30\python\lib\runpy.py", line 85, in _run_code

   exec(code, run_globals)

 File "C:\Program Files (x86)\ShadowBot\shadowbot-5.14.30\python\lib\site-packages\xbot_interpreter.py", line 97, in <module>

   main()

 File "C:\Program Files (x86)\ShadowBot\shadowbot-5.14.30\python\lib\site-packages\xbot_interpreter.py", line 59, in main

   mod.main(args)

 File "C:\Users\mi\AppData\Local\ShadowBot\users\627740694765789186\apps\58710247-dbfc-4a4a-936d-1d10e9baf3a4\xbot_robot\process5.py", line 13, in main

   loop_index += 1

TypeError: unsupported operand type(s) for +=: 'MobileElement' and 'int'


尝试过的方案

循环报错,试了好几次都不行,有哪位大神知道怎么解决,谢谢

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