python the method of super function
来源:互联网 发布:mac白屏很久 编辑:程序博客网 时间:2024/04/30 12:50
class C:
def init(self):
print(‘enter C’)
print(‘leave C’)
class A:
def init(self):
print(“enter A”)
print(“leave A”)
class B(A): # A –> C
def init(self):
print(“enter B”)
super(B, self).init()
print(“leave B”)if name == ‘main‘:
b = B()
阅读全文
0 0
- python the method of super function
- The Apply method of function object
- The method of learning python
- The method of parameters given in Python
- the argument of function in python
- what is the different between function and method in python
- The study of parameter of function in Python(20170908)
- Python(4)-----The function operation of python
- The method of getChildHtml
- The Function of MaxValue
- The pointer of function
- The Semantics of Function
- the built-in function of range() in python
- the built-in function of eval() in python
- the built-in function of reduce in python
- The study of recursive function in Python(20170910)
- The study of Higher-order function in Python(20170913)
- The study of map() and reduce() function in Python(20170913)
- PAT (Advanced Level) Practise
- 2017年11月3日 第二十五次总结
- 【总结】C++总结!!!
- Tomcat7.0.42源码研读之组件说明(四)
- JAVA设计模式之单例模式
- python the method of super function
- C语言中#、##和do{}while(0)的高效用法
- Vue.JS实战:简单的购物车
- PAT (Advanced Level) Practise
- 文章标题
- Java并发编程:synchronized
- C语言-动态链表的创建遍历与插入
- 八皇后问题(回溯)
- Python系统编程(多线程-互斥锁-死锁-thread-threading)