原文:json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)

如上,在使用json.loads将str转为dict格式的数据时报错 但如果将s name : Tom 改为s name : Tom ,就可以转化成功了 看来原因是出现在引号上。。。 ...

2020-03-16 00:15 0 1149 推荐指数:

查看详情

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

上篇博客提到了爬取动态数据,但是在构造request_url时,其中的url我用的浏览器的网址,但是经过运行发现,有时可以运行成功,有时 Traceback (most recent call last):File “D:/spider/product.py”, line ...

Sat Feb 08 20:56:00 CST 2020 0 32123
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM