今天闲来无事更新一下w10体验一下新功能,更新完今天在写python时用request请求数据时一直提示ValueError: check_hostname requires server_hostname,经过一番苦战之后发现两个解决办法
1.关闭系统设置的代理。 设置—–>网络和internet——->代理
2.在请求时加上本地代理
proxy = {
"http": "http://127.0.0.1:1080",
"https": "http://127.0.0.1:1080"
}
欢迎大家关注本站,一起进步!https://blog.sharegoods.top/