SSL验证失败怎么解..
urllib.error.URLError: <urlopen error certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)>键入代码如下,
import urllib.request
response = urllib.request.urlopen('http://www.fishc.com')
但是提示SSL验证失败?
请问各位大佬,这个怎么jie...{:10_266:} {:10_266:}
代码前面加上:
# 全局取消验证证书
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
页:
[1]