通过which python指令获取python目录
cd python目录/site-packages/robot/utils/
(如果which python命令找不到目录,通过ride.py指令打开ride,终端会显示一个路径,如图,cd 如图得到的目录/robot/utils/)

编辑vim unic.py(或open unic.py使用文档编辑器增加代码)
新增代码:(参照附件的文件对比)
最上面要import json
#************************************
if isinstance(item, (list, dict, tuple)):
try:
item = json.dumps(item, ensure_ascii=False, encoding='utf-8')
except UnicodeDecodeError:
try:
item = json.dumps(item, ensure_ascii=False, encoding='gbk')
except:
pass
except:
pass
#************************************

网友评论