with statement work on class

后端 未结 2 633
抹茶落季
抹茶落季 2021-01-13 17:11
{class foo(object):
    def __enter__ (self):
        print(\"Enter\")
    def __exit__(self,type,value,traceback):
        print(\"Exit\")
    def method(self):
            


        
2条回答
提交回复
热议问题