Discuss / Python / 作品

作品

Topic source

Jack

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

  • 1

Reply