12 lines
209 B
Python
12 lines
209 B
Python
|
def wrap_with_html(fn):
|
||
|
def wrapper_func(*args):
|
||
|
print('<html>')
|
||
|
fn(*args)
|
||
|
print('</html>')
|
||
|
return wrapper_func
|
||
|
|
||
|
@wrap_with_html
|
||
|
def echo(param):
|
||
|
print(param)
|
||
|
|
||
|
echo('Hello')
|