python get 请求接口 忽略证书验证
import requests # 请求接口 import ssl context = ssl.create_default_context() context.check_hostname = False context.verify_mode = ssl.CERT_NONE response = requests.get('https://xxxx', verify=False) print(str(response.status_code))