Untitled
unknown
python
22 days ago
261 B
1
Indexable
Never
from functools import wraps def MyCool(inP): def Decorator(f): @wraps(f) def wrapper(): print(inP) print(f) return wrapper return Decorator @MyCool('a') def a(): print('A') a() def MyB(): return MyCool('c') @MyB() def b(): print('B') b()