摘要:
先写上代码,有代码才好理解:#filename:classdemo.pyclass test: '''just person''' a=1 b=2 c=0 def __init__(self): '''just person's init''' test.c=test.c+1 def aadnb(self): return self.a+self.b def __del__(self): test.c=test.c-1 p=test()print test.cp.a=5p.b=7p1=tes 阅读全文
posted @ 2014-01-22 10:39
Sprite
阅读(806)
评论(1)
推荐(0)

浙公网安备 33010602011771号