def city(self):
curl = pycurl.Curl()
curl.setopt(pycurl.URL, self.api_city)
curl.setopt(pycurl.CAINFO, certifi.where())
curl.setopt(pycurl.HTTPHEADER, ['User-Agent: HTTPie/0.8.0'])
return curl.perform()
getPublicIPAddress_curlImpl.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录