13 lines
251 B
Python
13 lines
251 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
class decorador(object):
|
|
def __init__(self, func):
|
|
print "Welcome to"
|
|
func()
|
|
def __call__(self):
|
|
print "python :)"
|
|
@decorador
|
|
def luser():
|
|
print "World of"
|
|
print "decorators at"
|
|
luser() |