簡體   English   中英

Request.post() 方法無需等待響應

[英]Request.post() method without waiting for response

我想發送此請求但不等待響應:

requests.post(url=agregar, data=data, allow_redirects=False , headers=user_agent) 

我該怎么做?

您可以使用 async 和 await 制作異步方法,閱讀有關異步和任務的信息,希望對您有所幫助

您可以在 python 中使用 Threading.Thread class。https://docs.python.org/3/library/threading.html#threading.Thread

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM