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
2023-12-27 17:32:51
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