class man():
classify = "people"# 全局属性
def __init__(self,name,age,value,):#类方法
self.name = name
self.age = age
self.value = value
def talk(self,attch):
print self.value - attch.value
reson1 = man("emar","boy",80) #__init__(man("emar","boy",80),"emar","age","value"),生成实例的同时.自动将实例按照位置传入
reson2 = man("oldboy","boy",50)
reson1.talk(reson2)#实例之间关联,调用类方法的时候.同时也把实例本身传入到位置参数
man.talk(1,2)#类函数自己调用自己,位置变量传的是什么就是什么