wp231957 发表于 2021-6-12 08:21:57

出现这个信息怎么解决

PS E:\wp> py test6.py
C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
主要是它引起的,但是并没有影响 运行结果
r = requests.post(url=loginurl,headers=headers,verify=False)

suchocolate 发表于 2021-6-12 08:38:51

import requests
from requests.packages import urllib3

urllib3.disable_warnings()
response = requests.get('https://www.12306.cn', verify=False)
print(response.status_code)
页: [1]
查看完整版本: 出现这个信息怎么解决