def createCounter(): def count(): i=0 while True: i=i+1 yield i l=count() def counter(): return next(l) return counter
Sign in to make a reply
虫二YCY
def createCounter(): def count(): i=0 while True: i=i+1 yield i l=count() def counter(): return next(l) return counter