# -*- coding: utf-8 -*-

from functools import wraps


def after_action(after):
    """
    在函数运行后运行指定函数
    :param after:
    :return:
    """
    def decorator(func):
        @wraps(func)
        def wrapped_function(*args, **kwargs):
            result = func(*args, **kwargs)
            after(result)
            return result
        return wrapped_function
    return decorator

dedfe0c94785b7d30ed94b043e61f03fcd4e8ab7
<mask token>

<mask token>


def after_action(after):
    """
    在函数运行后运行指定函数
    :param after:
    :return:
    """

    def decorator(func):

        @wraps(func)
        def wrapped_function(*args, **kwargs):
            result = func(*args, **kwargs)
            after(result)
            return result
        return wrapped_function
    return decorator

from functools import wraps


def after_action(after):
    """
    在函数运行后运行指定函数
    :param after:
    :return:
    """

    def decorator(func):

        @wraps(func)
        def wrapped_function(*args, **kwargs):
            result = func(*args, **kwargs)
            after(result)
            return result
        return wrapped_function
    return decorator

# -*- coding: utf-8 -*-

from functools import wraps


def after_action(after):
    """
    在函数运行后运行指定函数
    :param after:
    :return:
    """
    def decorator(func):
        @wraps(func)
        def wrapped_function(*args, **kwargs):
            result = func(*args, **kwargs)
            after(result)
            return result
        return wrapped_function
    return decorator
