How can I make “itertools.product” argument lazy

后端 未结 0 540
南笙
南笙 2020-12-12 20:12

itertools.product is partially lazy because it evaluates the argument eagerly:

Before product() runs, it completely consumes the input itera

相关标签:
回答
  • 消灭零回复
提交回复
热议问题