如何判断代理IP是否有效
import requestsurl = ‘http://icanhazip.com‘proxy = {‘http‘:‘60.179.200.53:3000‘}proxy = {‘http‘:‘125.123.155.156:3000‘}proxy = {‘http‘:‘111.222.141.127:8118‘} #广东深圳proxy = {‘http‘:‘117.69.170.45:4216‘}proxy = {‘http‘:‘222.88.158.34:8060‘} #河南安阳proxy = {‘http‘:‘113.119.47.199:8118‘} #广东广州resp = requests.get(url,proxies=proxy).textprint(resp)