python-面向对象-类的继承-多继承
#coding=utf-8;
class nao(object):
def __init__(self):
print("生成nao的地方")
def explain_nao(self):
print("这是nao的类");
class shou(object):
def __init__(self):
print("生成shou的地方")
def explain_shou(self):
print("这是shou的类");
class jiao(object):
def __init__(self):
print("生成jiao的地方")
def explain_jiao(self):
print("这是jiao的类");
class ren(nao,shou,jiao):
def explain_nao(self):
print("这是人的nao的类");
def explain_shou(self):
print("这是人的shou的类");
ren =ren();
ren.explain_nao();
ren.explain_shou();
ren.explain_jiao();