Python 类属性:__name__, __doc__, __module__, __bases__, __dict__, __class__
Python 内置类属性有:
- ' name ':表示类的名称
- ' doc ':表示类的文档字符串
- ' module ':表示定义类的模块名称
- ' bases ':表示类的所有父类的元组
- ' dict ':表示类的属性字典
- ' class ':表示实例所属的类
以上是常见的 Python 内置类属性。
原文地址: https://www.cveoy.top/t/topic/jsoJ 著作权归作者所有。请勿转载和采集!