小坑:python requests.post 阻塞

作者: cayman 分类: 未分类 发布时间: 2020-07-30 15:07

requests.post ,这货默认是阻塞的,除非显式指定了 timeout 值,否则不会做超时处理。

  response = requests.post(url, data = body, headers = http_headers, timeout=5 ) 

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注