metaclass
基本解釋
- n.[計] 元類
英漢例句
- A metaclass, again, has a class description.
同樣地,一個元類也有類描述。 - In practice, then, we can do without a separate concept of metaclass.
那么,實際上不用一個單獨的元類概念我們也能做到這一切。 - Class descriptions with the same set of methods are the objects of a metaclass.
同一組方法的類描述就是元類的對象。 - A metaclass as such is a class and, therefore, has a class description.
如此一個元類也是一個類,因此有自己的類描述。 - More classes in the same metaclass can be created just by sending new() to the metaclass description.
通過傳送'''new()'''方法給元類描述,就可以創(chuàng)建該元類下更多別的類。