Discuss / Python / 练习

练习

Topic source

def createCounter():

    L=[0]

    def counter():

        L[0]=L[0]+1

        return L[0]

    return counter


  • 1

Reply