def zz(z): if isinstance(z,str)==True: def log(hanshu): def zx(*a,**b): print("Begin") hanshu(*a,**b) return zx return log else: def zx(*a,**b): print("Begin") z(*a,**b) return zx @zz def now(): print('2015-3-25') @zz("fgdgdf") def now(): print('2015-3-25')
Sign in to make a reply
黄凯18514