def createCounter(): i = 0 def counter(): nonlocal i i += 1 return i return counter
Sign in to make a reply
涵_天