import time
import requests
from requests.adapters import HTTPAdapter
s = requests.Session()
s.mount('http://', HTTPAdapter(max_retries=3))
s.mount('https://'<
request重试机制
最新推荐文章于 2024-02-01 09:51:56 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
import time
import requests
from requests.adapters import HTTPAdapter
s = requests.Session()
s.mount('http://', HTTPAdapter(max_retries=3))
s.mount('https://'<