def createCounter():
count = 0
def counter():
nonlocal count
count += 1
return count
return counter
Sign in to make a reply
却道天凉好个秋
def createCounter():
count = 0
def counter():
nonlocal count
count += 1
return count
return counter