12

同时发出多个相同请求, 如何区别这些请求的返回?

 3 years ago
source link: https://www.v2ex.com/t/839758
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Python

同时发出多个相同请求, 如何区别这些请求的返回?

  niselover · 9 小时 37 分钟前 · 518 次点击
res_list = grequests.map(grequests.post(url, data=json.dumps(data1), headers=header) for i in range(100))

能否从返回值中区分是第几个请求?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK