def createCounter(): def geneC(): i = 1 while True: yield i i = i + 1 g = geneC() def counter(): return next(g) return counter
Sign in to make a reply
hfeiiy