使用getattr
be_called_function = getattr(self, create_rule_method_name)decison_rule=be_called_function()誰調用了我這個函數import inspect
caller_name = inspect.stack()[1][3]當前函數名
print(inspect.currentframe().f_code.co_name)