def create_counter(): class foo: count=0 a=foo() def counter(): a.count+=1 return a.count return counter
Sign in to make a reply
神经突触王后
def create_counter(): class foo: count=0 a=foo() def counter(): a.count+=1 return a.count return counter