[英]'object' class documentation in python
I can't find the documentation of the 'object' class in python, which is the root of the inheritance tree of all classes in python.我在 python 中找不到“对象”class 的文档,这是 Z23EEEB43A97BDD75EE 中所有类的 inheritance 树的根what I have tried: googling the terms shows pages and pages of results regarding object oriented programming in python.我已经尝试过:谷歌搜索这些术语会显示关于 python 中面向 object 编程的页面和页面结果。 where can I get the documentation?我在哪里可以获得文档?
Remember that object
is a class
, and like all other classes you can get two useful things.请记住object
是class
,并且像所有其他类一样,您可以获得两个有用的东西。
help
dir
Try this:尝试这个:
>>> help(object) # Will give you some information about the methods implemented
>>> dir(object) # Will give you the attributes list
Do you want the exact source code?你想要确切的源代码吗?
I think object
was implemented at interpreter-level, but in the file builtins.pyi
you can find something useful too.我认为object
是在解释器级别实现的,但是在文件builtins.pyi
中你也可以找到一些有用的东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.