先来看看 类的__init__, 类的__new__ , 元类的__new__的执行顺序 class TMetaclass(type): def __new__(cls,name,bases,attrs): print('Metaclass new') return type.__new__(cls,name,bases,attrs) class T(metaclass=TMetaclass): def __init__(self, *args, **kwargs): print('class…