摘要: 基于类创建对象回顾 class Foo(object): def __init__(self,name): self.name=name print('__init__执行') def __new__(cls,*args,**kwargs): data=object.__new__(cls) pri 阅读全文
posted @ 2022-03-07 23:03 yaowy 阅读(31) 评论(0) 推荐(0)