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