class Foo:
    '我是描述信息'
    pass

print(Foo.__doc__)
它类的描述信息

相关文章:

  • 2021-12-19
  • 2021-10-27
  • 2021-06-06
  • 2021-08-11
  • 2021-07-11
  • 2022-12-23
猜你喜欢
  • 2021-05-16
  • 2021-10-22
  • 2022-12-23
  • 2021-07-30
  • 2021-09-08
  • 2022-12-23
  • 2022-02-03
相关资源
相似解决方案