python--python核心编程(1)--创建class
摘要:
class fooclass(object):... """first class"""... version = 0.1... def __init__(self, nm = 'doe'):... """ constructor"""... self.name = nm... print 'creat class'... def showname(self):... """ display"" 阅读全文
posted @ 2012-08-07 21:08 龙沙宝石 阅读(315) 评论(0) 推荐(0) 编辑