Discuss / Python / 作业

作业

Topic source
def createCounter():
    n=0
    def counter():
        nonlocal n
        n+=1
        return n 
    return counter

  • 1

Reply