[root@centos6 tmp]# cat a2.py
class Person:
def __init__(self,id,mail,phone):
self.id=id
self.mail=mail
self.phone=phone
def send_xypp(self):
self.xxx='444445555'
return(self.id)
def send_mail(self):
return(self.mail)
def send_phone(self):
return(self.phone)
print(type(Person))
person_inst=Person('11111','222222222222','3333333333')
print(person_inst.send_xypp())
print(person_inst.send_mail())
print(person_inst.send_phone())
print(person_inst.xxx)
[root@centos6 tmp]# python a2.py
11111
222222222222
3333333333
444445555