-
方法一
1 import requests 2 import urllib3 3 urllib3.disable_warnings() 4 resp = requests.get('https://www.***.com', verify=False)
-
方法二
1 import logging 2 import requests 3 logging.captureWarnings(True) 4 resp = requests.get('https://www.***.com', verify=False)