摘要:
class Foo(object): def func(self): print("func") pass def __enter__(self): print("enter") return Foo() def __exit__(self, exc_type, exc_val, exc_tb): ... 阅读全文
posted @ 2018-03-28 16:45
选择远方,风雨兼程。
阅读(206)
评论(0)
推荐(0)
摘要:
Flask框架中的信号基于blinker,其主要就是让开发者可是在flask请求过程中定制一些用户行为。 1. 内置信号 2. 源码示例 class Flask(_PackageBoundObject): def full_dispatch_request(self): self.try_trigg 阅读全文
posted @ 2018-03-28 16:23
选择远方,风雨兼程。
阅读(1146)
评论(0)
推荐(0)

浙公网安备 33010602011771号