摘要: class C(object): def __enter__(self): print('jinru') return self def __exit__(self, exc_type, exc_val, exc_tb): print('chuqu') with C() as f: print(f) 阅读全文
posted @ 2019-12-30 10:41 流年中渲染了微笑 阅读(115) 评论(0) 推荐(0) 编辑