标题中的问题
示例代码:
>>> j.type()
u'joint'
>>> type(j)
<class 'pymel.core.nodetypes.Joint'>
最佳答案
看看这个简单的例子。您正在尝试比较两个不同的东西 - Joint
类方法 type
和 python 内置函数 type
- 他们有相同的名字,所有:
class Joint():
def type(self):
return u'joint'
>>> j = Joint()
>>> j.type()
'joint'
>>> type(j)
<class '__main__.Joint'>
关于python - Python 类型方法和 Maya 变换节点上的类型函数有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34084333/