A taste of urllib3

 import urllib3
import certifi http = urllib3.PoolManager(
cert_reqs='CERT_REQUIRED', # Force certificate check.
ca_certs=certifi.where(), # Path to the Certifi bundle.
)
try:
res = http.request('GET', 'https://github.com')
print(res.status)
print(res.headers)
except urllib3.exceptions.SSLError as e:
print(e)

My favourite way to express my thoughts or ideas is writing code.

上一篇:为什么c++中返回成员变量的指针,会破坏了封装?


下一篇:从汇编看c++中指向成员变量的指针(一)