Python 方法包装器和插槽包装器之间的区别是什么?
1)Python 方法包装器和插槽包装器之间的区别是什么?,python,methods,wrapper,slot,Python,Methods,Wrapper,Slot,1) True.\uuuu init\uuuuu给出 `<method-wrapper '__init__' of bool object at 0x9efaa0>` 区别是什么?注意:int是一个类型,True是bool类型的对象。因此bool.\uuu init\uuu也给了我们一个。 `<slot wrapper '__init__' of 'object' objects>`
True.\uuuu init\uuuuu
给出
`<method-wrapper '__init__' of bool object at 0x9efaa0>`
区别是什么?注意:
int
是一个类型,True
是bool
类型的对象。因此bool.\uuu init\uuu
也给了我们一个
。
`<slot wrapper '__init__' of 'object' objects>`