def createCounter():
L=[0]
def counter():
L[0]=L[0]+1
return L[0]
return counter
i = 0
i = i + 1
return i
为什么这样不行
Sign in to make a reply
龙哥吉祥-偶也
def createCounter():
L=[0]
def counter():
L[0]=L[0]+1
return L[0]
return counter