摘要: class AAA: def __enter__(self): 上文函数 return slef def __exit__(self, exc_type , exc_value , tb): 下文函数 print "下文函数,执行关闭连接释放资源" def test(self): print "执行 阅读全文
posted @ 2020-05-28 00:33 凯宾斯基 阅读(231) 评论(0) 推荐(0)