2018年3月12日

python super()函数

摘要: super()函数是用来调用父类(超类)的一个方法 super()的语法: python 2 的用法: super(Class, self).xxx # class是子类的名称 python 3用法: super().xxx parentchildHelloWorld from Parentchil 阅读全文

posted @ 2018-03-12 17:35 永恒自由森林 阅读(435) 评论(0) 推荐(0) 编辑

导航