關於python 類方法 這一件事

  1.  一些__方法 class Foo(object): def __init__(self): print("init") def __call__(self, *args, **kwargs): print("call") def __getattr__(self, item): print("getattr"
相關文章
相關標籤/搜索