class MyClass:
def __init__(self):
pass
def func1(self):
# do something
print('a') #for example
self.common_func()
def func2(self):
# do something
self.common_func()
def common_func(self):
pass
标签:__,调用,类时,python,self,common,func,def,something
来源: https://www.cnblogs.com/kekeoutlook/p/12234387.html