怎么我用楼主的程序出现错误:
Warning (from warnings module):
File "G:\Program Files\Python2.7\lib\site-packages\requests\packages\urllib3\util\
ssl_.py", line 79
InsecurePlatformWarning
InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see
https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
Traceback (most recent call last):
File "G:/Program Files/Python2.7/yq_py/
v2ex_test.py", line 19, in <module>
s.post('
https://www.v2ex.com/signin', login_data, headers=headers)
File "G:\Program Files\Python2.7\lib\site-packages\requests\
sessions.py", line 507, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "G:\Program Files\Python2.7\lib\site-packages\requests\
sessions.py", line 464, in request
resp = self.send(prep, **send_kwargs)
File "G:\Program Files\Python2.7\lib\site-packages\requests\
sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "G:\Program Files\Python2.7\lib\site-packages\requests\
adapters.py", line 431, in send
raise SSLError(e, request=request)
SSLError: hostname '
www.v2ex.com' doesn't match either of '*.c3edge.com', '
c3edge.com'