Discuss / Python / 作业

作业

Topic source

祥子920

#1 Created at ... [Delete] [Delete and Lock User]
def createCounter():
    i = 0
    def counter():
        nonlocal i 
        i = i +1
        return i
    return counter

  • 1

Reply