使用OCR识别,把识别结果放入 table2,。
然后table2的内容写入到数据表格时,报错了。
Path 'values[1].Response'.
Traceback (most recent call last):
File "D:\Program Files\ShadowBot\shadowbot-5.14.38\python\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "D:\Program Files\ShadowBot\shadowbot-5.14.38\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\Program Files\ShadowBot\shadowbot-5.14.38\python\lib\site-packages\xbot_interpreter.py", line 97, in <module>
main()
File "D:\Program Files\ShadowBot\shadowbot-5.14.38\python\lib\site-packages\xbot_interpreter.py", line 57, in main
try:
File "D:\MyData\pengwf2\AppData\Local\ShadowBot\users\631396161350819842\apps\facb6028-c453-43a7-9c90-3d0452b7483f\xbot_robot\main.py", line 12, in main
xbot_visual.programing.databook.write_data_to_workbook(write_range="area", write_way="append", write_column_way="override", row_num="1", column_name="A", begin_row_num="1", begin_column_name="", content=table2, _block=("main", 4, "写入内容至数据表格"))
File "<string>", line 89, in wrapper
File "<string>", line 84, in wrapper
File "<string>", line 180, in write_data_to_workbook
File "<string>", line 175, in set_range
File "<string>", line 32, in execute
Exception: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Object[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'values[1].Response'.