<div>
<br>def deco(func):<br>    def wrap():<br>        print 'i am in deco'<br>        return func()<br>    return wrap<br><br>@deco<br>def test():<br>    print  "i am in test"<br>when you run it ,there is no result ,<br>
<br>def deco(func):<br>        print 'i am in deco'<br>        return func()<br>   <br><br>@deco<br>def test():<br>    print  "i am in test"<br><br><br>when you run it  ,you can get :<br>>>> <br>
i am in deco<br>i am in test<br><br>why??<br></div>