Python 异步编程
摘要:介绍几种Python异步执行的方式 参考: "官方文档" "python 实现异步执行" "Python中协程异步IO" 通过 threading.Thread 实现 先将需要异步执行的函数用线程的方式包装为一个装饰器,然后拿去装饰需要异步执行的函数即可。 下面构造两个函数 A 函数用 async_
阅读全文
posted @ 2020-04-14 17:30
posted @ 2020-04-14 17:30
posted @ 2020-04-13 01:32