python super
时间: 2023-08-27 15:20:48 浏览: 96
python super函数使用方法详解
5星 · 资源好评率100%
在Python中,super是一个用于调用父类方法的特殊函数。通过使用super,我们可以在子类中调用父类的构造函数或其他方法。它的作用是确保在多重继承中正确执行父类方法,并且可以按照方法解析顺序(MRO)的顺序调用父类方法。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [python中的super是什么?](https://blog.csdn.net/baidu_37157624/article/details/123676212)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Python基础教程:super()方法详解](https://blog.csdn.net/qdPython/article/details/118490356)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文