#!/bin/python
class zhu():
num=6
def __init__(self,name,age):
self.name=name
self.age=age
def Student(self):
print('name=',self.name)
print('age=',int(self.age))
print('num=',self.num)
return self.num
#student=zhu("zhuliguo",18)
#student.Student()
class zhuzhu(zhu):
def __init__(self,name,age):
zhu.__init__(self,name,age)
self.sex="nan"
def ssex(self):
print(self.sex)
student=zhuzhu("zhuzhuzhu",22)
core=student.Student()
print(core)
student.ssex()
阅读(1652) | 评论(0) | 转发(0) |