来源:百度知道

 

python中的super( test, self).__init__()是什么意思?

 

首先找到test的父类(比如是类A),然后把类test的对象self转换为类A的对象,然后“被转换”的类A对象调用自己的__init__函数

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2023-03-28
  • 2022-12-23
  • 2022-12-23
  • 2023-02-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案