小编MyU*_*ser的帖子

Python 请求找不到连接适配器

当我在Windows8.1上的Python3.4中运行以下代码时:

r = requests.get(url)
Run Code Online (Sandbox Code Playgroud)

除其他外,它还返回:

File "C:\Python34\lib\site-packages\requests\sessions.py", line 644, in get_adapter
   raise InvalidSchema("No connection adapters were found for '%s'" % url) requests.exceptions.InvalidSchema: No connection adapters were found for '"http://example.com"'
Run Code Online (Sandbox Code Playgroud)

这仅仅是我的代码、防火墙或其他问题的问题吗?我该如何修复它?

python python-3.x python-requests python-3.4

1
推荐指数
1
解决办法
8963
查看次数

标签 统计

python ×1

python-3.4 ×1

python-3.x ×1

python-requests ×1