def createCounter():
def iter():
n=1
while True:
yield n
n=n+1
it=iter()
def counter():
return next(it)
return counter
Sign in to make a reply
雅乐landa
def createCounter():
def iter():
n=1
while True:
yield n
n=n+1
it=iter()
def counter():
return next(it)
return counter