def createCounter(): # 定义一个变量 count,用于记录计数器的值 count = 0 def counter(): nonlocal count count += 1 return count return counter
Sign in to make a reply
Super-String