python类内部调用自己的成员函数必须加self

class A:
    def a(self):
        print("hello world")
    
    def b(self):
        return self.a()
不考虑业务场景,一味的争执技术的高下,都是耍流氓。
原文地址:https://www.cnblogs.com/leoych/p/13851757.html