摘要: class counter: count = 0 def __init__(self): self.count+=1class counter2: count = 0 def __init__(self): self.__class__.count+=1print counter.count # 类... 阅读全文
posted @ 2013-04-28 14:46 前行者2011 阅读(109) 评论(0) 推荐(0) 编辑