Discuss / Python / 作业

作业

Topic source

你是微笑

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

def createCounter():

    i=0

    def counter():

        nonlocal i

        i+=1

        return i

    return counter


  • 1

Reply