__name__ is the class name;   返回类名

__module__ is the module name in which the class was defined;   定义此类的模块名

 __dict__ is the dictionary containing the class’s namespace;   由类的命名空间组成的字典

__bases__ is a tuple (possibly empty or a singleton) containing the base classes, in the order of their occurrence in the base class list;   一个由基本类组成的数组(也许是空的或只有一个成员),按基类列表中出现的顺序排列

 __doc__ is the class’s documentation string, or None if undefined.  类的文档字符串,如果没有定义的话,为空。

相关文章:

  • 2021-05-31
  • 2021-05-20
  • 2021-12-28
  • 2021-12-30
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
  • 2022-01-16
相关资源
相似解决方案