Python 内置类属性有:

  1. ' name ':表示类的名称
  2. ' doc ':表示类的文档字符串
  3. ' module ':表示定义类的模块名称
  4. ' bases ':表示类的所有父类的元组
  5. ' dict ':表示类的属性字典
  6. ' class ':表示实例所属的类

以上是常见的 Python 内置类属性。

Python 类属性:__name__, __doc__, __module__, __bases__, __dict__, __class__

原文地址: https://www.cveoy.top/t/topic/jsoJ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录