python装饰器(带参数)

def test(select): ====def func2(func): ========def decorate(args): ============if select == 1: ============print 1 ============print args ============func(args) ============if select == 2: ===========
相关文章
相关标签/搜索