方法包装器和槽包装器有什么区别?

2024-04-25 05:15:40 发布

您现在位置:Python中文网/ 问答频道 /正文

1)True.__init__给出

`<method-wrapper '__init__' of bool object at 0x9efaa0>`

2)int.__init__给出

`<slot wrapper '__init__' of 'object' objects>`

有什么区别?你知道吗


Tags: oftrueobjectsobjectinitwrappermethodat