python super

class F3(object):

    def f1(self):
        ret=super().f1()
        print(ret)
        return 123

class F2(object):

    def f1(self):
        print('123')

class F1(F3,F2):
    pass

obj=F1()
obj.f1()

 

posted @ 2018-08-30 16:00  一二九  阅读(78)  评论(0编辑  收藏  举报