python apply class extend usage
来源:互联网 发布:小猪cms源码下载 编辑:程序博客网 时间:2024/04/30 11:27
'''
Created on 2013-8-29
@author: Administrator
'''
class Rectangle:
def __init__(self, color="white", width=10, height=10):
print "create a ", color,self, "sized", width, "x", height
class RoundRectangle(Rectangle):
def __init__(self, **kw):
apply(Rectangle.__init__, (self,),kw)
rect = Rectangle(color="green")
rrect = RoundRectangle(color="blue")
Created on 2013-8-29
@author: Administrator
'''
class Rectangle:
def __init__(self, color="white", width=10, height=10):
print "create a ", color,self, "sized", width, "x", height
class RoundRectangle(Rectangle):
def __init__(self, **kw):
apply(Rectangle.__init__, (self,),kw)
rect = Rectangle(color="green")
rrect = RoundRectangle(color="blue")
- python apply class extend usage
- java.lang.Class usage
- To extend jQuery function for gloable usage
- python apply
- python apply
- Ext.apply、 Ext.applyIf和Ext.extend
- extjs apply,applyif,override,extend 的区别
- HTMLParser python usage
- usage of python tile
- JS Class construct and extend
- JS Class construct and extend
- python extend append
- python extend append
- python extend() append()
- Python List extend()方法
- python: extend(),append(),insert()
- python: append & extend 异同
- python list extend用法
- 串口调试
- UVA 10815 Andy's First Dictionary
- opencv之图像搭桥法
- How many zeros and how many digits?
- Object-c 总结之NSArray
- python apply class extend usage
- Factoring Large Numbers
- Eclipse 快捷键
- UVA 10361 Automatic Poetry
- DataReader与DataSet有什么区别?
- Code Refactoring
- 【收藏】好的开源项目和代码
- The Other Two Trees
- 简明 Vim 练级攻略