initial commit

Este commit está contenido en:
ale
2024-10-03 01:47:38 +02:00
commit 72d18ac6c0
Se han modificado 25 ficheros con 596 adiciones y 0 borrados

13
test/Python @Decorador Archivo normal
Ver fichero

@@ -0,0 +1,13 @@
#!/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()