#类方法之间的调用
class girlFriend():
height=165
weight=50
education=‘本科’
salary=30000
money=500000.00
characteristic={‘漂亮’,‘可爱’,‘大长腿’,‘闭月羞花’,‘国色天香’,‘倾国倾城’,‘秀色可餐’,‘明眸皓齿’,‘小家碧玉’,‘冰肌玉骨’,‘窈窕淑女’,‘天生丽质’,‘亭亭玉立’}
#行为函数 self
def cooking(self):
print('打印self:',self)
print('喜欢做饭')
@classmethod
def hiking(cal):
print('喜欢户外运动')
@staticmethod
def swimming():
print('喜欢游泳')
def coding(self):
print(self.education+'喜欢代码')
def language(self,*args):
self.coding()
print(self.education+'张三会{}语言'.format(args))
return self.education+'张三会{}语言'.format(args)
gf=girlFriend()
gf.language()
print(‘return的 结果:{}’.format(gf.language(‘java’)))