import grequests   #这个包要放到文件最顶部的导入

req_list = [] for x in range(100): headers = {"Content-Type": "application/json", 'Connection': 'close'} url = "http://" + ip + ":" + port + "/xxxx" data = {"time": 0, "time1": "xxxxxxxxxxxx", "time2": 4} req = grequests.post(url, json=data, headers=headers, verify=False) req_list.append(req) res_list = grequests.map(req_list)

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-07-09
  • 2021-10-30
猜你喜欢
  • 2021-09-07
  • 2021-11-24
  • 2022-02-02
  • 2021-10-20
  • 2021-11-07
  • 2022-12-23
  • 2021-06-28
相关资源
相似解决方案