python 之类的继承

  

#类的继承

class As1():

    def As2(self):
        print("he11...")


class As2(As1):
    def As2(self):
        print("he22 ....")



a1 = As2()
a1.As2()

  

posted @ 2019-11-05 16:06  Mr.zou  阅读(155)  评论(0编辑  收藏  举报