pythonfor循环和程序,Python中的生成器和for循环
So I have a generator function, that looks like this.def generator():while True:for x in range(3):for j in range(5):yield xAfter I load up this function and call "next" a bunch of times, I'd expect it...