摘要: class Role(object): ac=None #类变量 def __init__(self,name,role): self.name=name #实例变量 self.role=role p1=Role('p1','police') t1=Role('t1','terrorist') pr 阅读全文
posted @ 2016-08-09 10:22 howhy 阅读(173) 评论(0) 推荐(0)