![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tornado
文章平均质量分 53
JunFeng666
等想好了再写简述
展开
-
tornado简单权限认证
工作中遇到需要权限认证的需求,想到两个方法,在此记录 方法一: 用类装饰器,如下: class authenticated(object): def __init__(self, role): self.role = role def __call__(self, method): def login_wrapper(_self, *...原创 2018-02-11 15:22:16 · 3598 阅读 · 0 评论 -
Tornado官方文档翻译--持续更新
Tornado官方文档翻译--持续更新**简介****异步和非阻塞I/O****阻塞****异步****例子****Coroutines****Python 3.5: async and await****工作原理****怎样调用协程****协程模式**回调交互(Interaction with callbacks)调用阻塞函数(Calling blocking functions)并行(Para...翻译 2018-09-18 12:00:14 · 2407 阅读 · 0 评论