def createCounter(): count = 0 def counter(): nonlocal count count += 1 return count return counter
Sign in to make a reply
背诵的对白