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