单词 | metaclasses | ||||||||
释义 | metaclasses
更多释义 收起释义 例句释义: 元类,五分钟理解元类,元数据类 1. For instance, it took us a few months to understand how to use metaclasses, but a few years to understand how not to use them. 例如,花几个月时间就能理解如何使用元类,但是要花几年时间才能明白如何不使用它们。 www.ibm.com 2. We explain the concept of composition of metaclasses. 我们将解释元类合成的概念。 www.ibm.com 3. Of course, the guilt of the authors is obvious here: our earlier installments on metaclasses in Python helped popularize their usage. 当然,作者的过错也很明显:我们的关于Python中的元类的前几部分助长了这种做法的流行。 www.ibm.com 4. Each of these metaclasses has attributes from which Class inherits. 这些元类都有Class继承的属性。 www.ibm.com 5. The metaclasses being extended by the stereotype are specified on the Extensions tab in the Properties view. 元类被原型所扩展,是在属性视图Extensions标检页完成的。 www.ibm.com 6. When you select multiple metaclasses, a generic features window opens where you can change the stereotype. 当您选择多个元类时,一个通用特性窗口会在您变更模板的地方打开。 www.ibm.com 7. Notice that metaclasses were never mentioned in the lookup procedure. 注意,从未在查找过程中提到过元类。 www.ibm.com 8. A profile defines a number of stereotype classes that can extend one or more UML metaclasses with additional properties and relationships. 规范定义了许多能够通过添加属性和关系被扩展为一个或者更多的UML元类的模板类。 www.ibm.com 9. You feel that a custom metaclasses is overkill for the simple job of class initialization, and you would rather use a simpler solution. 您觉得对于类初始化这类简单的工作使用自定义元类是杀鸡用牛刀,所以想要使用一种更为简单的解决方案。 www.ibm.com 10. Just this is the main difference between metaclasses and superclasses. 这正是元类与超类的主要不同。 www.ibm.com 1. For metaclasses in Python specifically, Guido van Rossum's essay, Unifying types and classes in Python 2. 2 is useful. 特别是对于Python中的元类,GuidovanRossum的文章UnifyingtypesandclassesinPython2.2也很有用。 www.ibm.com 2. Metaclasses are more fragile than many people realize. 元类比很多人认识到的更加脆弱。 www.ibm.com 3. Stereotype S1 has two attributes (a1: Integer, and a2 : Boolean), extends Class and Actor metaclasses, and has constraint profileCons1. StereotypeS1有两个属性(a1:整型,以及a2:布尔类形),扩展类和动作元类,并且存在约束profileCons1。 www.ibm.com 4. I have some ideas for doing some tricky stuff with metaclasses in future library versions, and I might even work in properties and slots. 对于未来库版本中的元类,我有几个技巧方面的想法,而且我甚至可能使用特性和插槽。 www.ibm.com 5. Metaclasses defined in the UML 2. 1 metamodel (through metaclass association) 元类定义在UML2.1元类模型中(通过元类的关联) www.ibm.com 6. If the Duke class should happen to have a custom metaclasses, it can obtain some attributes that way 如果Duke碰巧有一个定制元类,那么它能够以以下方式获得一些属性 www.ibm.com |
||||||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。