python多父类继承示例

2015-08-26 0 519
python多父类继承示例
class A:
    def foo(self):
        print 'foo called in A'

class B:
    def foo(self):
        print 'foo called in B'

    def bar(self):
        print 'bar called in B'

class C(A,B):
    pass

遇见资源网 python python多父类继承示例 http://www.ox520.com/15721.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务