def deco(func): def wrapper(): print("1 before myfunc() called.") func() print(" 2 after myfunc() called.") return wrapper@decodef myfun(): print("myfun")myfun()