Quick actions

cmd+k|ctrl+k

Navigation

Languages

UNIT 42.8

Snippet info

Language

Python

Visibility

public

Author

mori

Created

2020-04-13T02:12:35Z

Updated

2020-04-13T02:12:35Z

def html_tag(tag_name):

    def real_decorator(func):

        def wrapper():

            print('<{0}>{1}</{0}>'.format(tag_name, func))

            return

        return wrapper

    return real_decorator
a, b = input().split()

@html_tag(a)
@html_tag(b)
def hello():
    return 'Hello, world!'

print(hello())
INFO