Discuss / Python / 作业

作业

Topic source

黄凯18514

#1 Created at ... [Delete] [Delete and Lock User]


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')

  • 1

Reply