def createCounter(): a = 0 def counter(): nonlocal a a += 1 return a return counter counterA = createCounter()
Sign in to make a reply
用户7321215683