def set_fun(func): def call_fun(): print("执行闭包内函数") func() return call_fun @set_fun def test(): print("当前的功能") test()