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