摘要: class Foo(object): def __init__(self): pass def __enter__(self): print("__enter__") def __exit__(self, exc_type, exc_val, exc_tb): print("__exit__") obj = Foo(... 阅读全文
posted @ 2019-02-08 16:07 就俗人一个 阅读(419) 评论(0) 推荐(0) 编辑