def createCounter():
n = 0
def counter():
nonlocal n
n += 1
return n
return counter
L = [0]
L[0] += 1
return L[0]
def getCounter():
while True:
n +=1
yield n
a = getCounter()
return next(a)
L=[]
L.append(9)
return len(L)
Sign in to make a reply
月半意
def createCounter():
n = 0
def counter():
nonlocal n
n += 1
return n
return counter
def createCounter():
L = [0]
def counter():
L[0] += 1
return L[0]
return counter
def createCounter():
def getCounter():
n = 0
while True:
n +=1
yield n
a = getCounter()
def counter():
return next(a)
return counter
def createCounter():
L=[]
def counter():
L.append(9)
return len(L)
return counter