python - Request.post() 方法无需等待响应
问题描述
我想发送此请求但不等待响应:
requests.post(url=agregar, data=data, allow_redirects=False , headers=user_agent)
我怎么做?
解决方案
您可以使用 async 和 await 制作异步方法,阅读有关异步和任务的信息,希望对您有所帮助
推荐阅读
- objective-c - `attemptRecovery(fromError:optionIndex:)` 在 NSDocument 的 Swift 子类的超类中找不到
- java - 如何保存在 string.xml 中分配的字符串数组?
- javascript - 如何仅使用纯 JavaScript 和 CSS 制作 OnScroll 动画 .. 不使用任何库
- unity3d - 在没有实例化的情况下在另一个对象旁边生成一个对象
- javascript - 使用 jQuery scrollTop 进行导航表现得很奇怪
- angular - [Angular]如何将 FirebaseListObservable 切换到 AngularFireList?
- python-2.7 - Errno 101 WIFI断开后网络无法访问,但是localhost呢?
- c# - Xamarin Forms - Slider Thumb 边框颜色
- php - 如何解决 307 重定向上的 CORS 错误
- c# - 无法解析符号 fsSerializer.TrySerialize