json.load出错(python)
raise JSONDecodeError(“Expecting value”, s, err.value) from None
afile = open('mm.json','r',encoding='utf-8')
config = json.load(afile)
json文件内容如下:
{
"db_config":{"host": "","port": }
}
修改,因为port没有给值
{
"db_config":{"host": "","port": ""}
}