raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 2 column 3 (char 3)
时间: 2023-10-15 19:26:08 浏览: 138
这个错误信息是Python的JSONDecodeError异常的一部分,它表示在解析JSON数据时出现了错误。具体地说,错误消息"Expecting value"表示代码期望在JSON字符串中找到一个值,但实际上没有找到。错误消息中的"line 2 column 3 (char 3)"指示出错的位置在JSON字符串的第2行第3列(字符索引为3)。根据提供的引用,这个错误可能发生在使用json.loads()函数尝试解析某度文库文档的js文件链接时。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [已解决raise JSONDecodeError(“Expecting value”, s, err.value) from None](https://blog.csdn.net/yuan2019035055/article/details/128335534)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [python使用json.loads时出现raise JSONDecodeError(“Expecting value“, s, err.value) from None](https://blog.csdn.net/shiyuzuxiaqianli/article/details/107522498)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [python 爬虫 报错 求救](https://download.csdn.net/download/weixin_38733597/13750945)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文