def createCounter(): def count(): n = 0; while 1: n += 1; yield n; c = count() def n(): return next(c) return n
Sign in to make a reply
s凡s