问题说明:
需要将列表转换成字符串,但是 list 没有 strip"属性或方法,请问一下怎么处理呢?
报错信息:
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 87, in <module>
main()
File "/Applications/影刀.app/Contents/Resources/app/node_modules/xbot-engine/lib/lib/python3.7/site-packages/xbot_interpreter.py", line 47, in main
try:
File "/Users/aria/Library/Application Support/Shadowbot/users/616439900544913410/apps/f6bf41f0-0595-4332-a463-fb276bdc7eb7/xbot_robot/process2.py", line 26, in main
xbot_visual.web.element.input(browser=web_page, element=package.selector("Your name"), text=variable.strip(), append=False, simulate=True, save_to_clipboard=False, input_type="simulate", contains_hotkey=False, force_ime_ENG=False, send_key_delay="50", focus_timeout="1000", delay_after="1", click_before_input=True, anchor_type="center", sudoku_part="middleCenter", offset_x="0", offset_y="0", timeout="20", _block=("子流程2", 17, "填写输入框(web)"))
AttributeError: 'list' object has no attribute 'strip'