def createCounter(): j=0 def counter(): nonlocal j j=j+1 return j return counter
Sign in to make a reply
纳兰小朋友
def createCounter():
j=0
def counter():
nonlocal j
j=j+1
return j
return counter