Can it be used as a decorator?
b = lambda func: lambda *args, **kwargs: (print("a"), func(*args, **kwargs), print("c")) @b def a(): print("b")
Interesting
Recommended Posts