What does it mean to “consume” in Python? In an iterator?

前端 未结 6 746
既然无缘
既然无缘 2020-12-11 01:45

I have been working in Python for a few months now, and it has occurred to me that I often overlook vocabulary that escapes me at first glance, instead trying to get the gis

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-11 02:19

    I can answer your first point, to consume is to exhaust an iterable this means to run the iterable out of next items.

提交回复
热议问题