pythonBUG锦集:json.decoder.JSONDecodeError: Expecting property name enclosed in double quo错误
写爬虫的时候遇到json.decoder.JSONDecodeError:Expectingpropertynameenclosedindoublequotes:line1column2(char1)错误!这里是把json对象转换为字典返回,所以单纯的用单引号,结果报错return{'title':title,'url':url,'images':images}后面改成双引号正常。结果: