Expected value but found T_OBJ_END at character 22
3 处理方案 - 正确 json 示范
whiletruedo--Expected value but found T_END at character 1--Expected value but found T_OBJ_END at character 22local str ='{"success":0,"code":[]}'local err,tbl =pcall(function(str)return jsonLib.decode(str)end,str)print(err)print(tbl)sleep(1000)end
4 处理方案 - 错误 json 示范
whiletruedo--Expected value but found T_END at character 1--Expected value but found T_OBJ_END at character 22local str ='{"success":0,"code":[}'local err,tbl =pcall(function(str)return jsonLib.decode(str)end,str)print(err)print(tbl)sleep(1000)end
在使用pip进行软件包安装的时候出现问题: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 解决:
mkdir -p ~/.pip
vim ~/.pip/pip.conf然后输入内容:
[global]
ind…