![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
清风弥天
立志成为超级大牛的男人!
展开
-
python 的asyncio 异步IO编程
https://zhuanlan.zhihu.com/p/59621713 转载python的其他模块如geventgreenlet等协程库,和asyncio实现的功能类似,但是asyncio属于python3内建模块,而gevent还需要打猴子补丁,项目中优先使用asyncio异步IO,Asyncio缺点:兼容性不好, requests和Asyncio的兼容性就不好,而 aiohttp 库和Asyncio兼容性比较好。...转载 2021-02-02 15:09:13 · 87 阅读 · 0 评论 -
python greenlet gevent 学习
https://www.bilibili.com/video/BV19441137xy?p=149 黑马视频https://www.yuque.com/u1135564/txhggn/agqg5y 参考笔记原创 2021-02-02 14:51:30 · 87 阅读 · 1 评论 -
python中文文档
https://docs.python.org/zh-cn/3/library/asyncio-stream.html#asyncio.StreamWriter原创 2021-02-01 17:40:05 · 51 阅读 · 0 评论 -
Python3 async def和@asyncio.coroutine的区别
https://blog.csdn.net/m345376054/article/details/78538726转载 2021-02-01 17:21:05 · 1657 阅读 · 0 评论 -
python-生成器即send()用法
def consumer(): r = '' while True: n = yield r if not n: return print('[CONSUMER] Consuming %s...' % n) r = '200 OK' def produce(c): c.send(None)#先用空值启动生成器 n = 0 while n < 5: ...原创 2021-02-01 13:34:39 · 442 阅读 · 0 评论