'''
装饰器基础
'''

def decorate(func):
    def inner():
        print('running inner')
    return inner

@decorate
def target():
    print('running target')



target()

'''
OUT:
running inner
'''

decorate(target())
47d89d2ed729ec49622a17738ef8f3bc09113550
<mask token>

<mask token>


@decorate
def target():
    print('running target')


<mask token>

<mask token>


def decorate(func):

    def inner():
        print('running inner')
    return inner


@decorate
def target():
    print('running target')


<mask token>

<mask token>


def decorate(func):

    def inner():
        print('running inner')
    return inner


@decorate
def target():
    print('running target')


target()
<mask token>
decorate(target())

'''
装饰器基础
'''

def decorate(func):
    def inner():
        print('running inner')
    return inner

@decorate
def target():
    print('running target')



target()

'''
OUT:
running inner
'''

decorate(target())