小编cha*_*udu的帖子

如何在python中仅获取继承类中的函数名称

如何在python中仅获取继承类中的函数名称

class A(object):
    def Afunc1(self):
        pass

    def Afunc2(self):
        pass

class B(A):
    def Bfunc1(self):
        pass

    def Bfunc2(self):
        pass
Run Code Online (Sandbox Code Playgroud)

有没有办法只获取 B 类中的函数名而不是 A 类中的函数名

python python-3.x

1
推荐指数
2
解决办法
38
查看次数

标签 统计

python ×1

python-3.x ×1