Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用type(...). 如何为这种类型提供 Meta 类?
type(...)
您不将其type作为参数提供,元类将继承type其自身,因此您将改为调用元类的构造函数。
type