json.decoder.JSONDecodeError: Expecting property name enclosed in double quo错误

十点数据 1年前 ⋅ 3218 阅读

写爬虫的时候遇到 json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)错误!

这里是把json对象转换为字典返回,所以单纯的用单引号,结果报错

return { 'title': title, 'url': url, 'images': images } 改成双引号即正常

20181106234157196.png

全部评论: 0

    我有话说: