Iterator equivalent of a slice in python?

前端 未结 0 2035
清歌不尽
清歌不尽 2021-02-12 08:39

What is an idiomatic and efficient way of obtaining a iterator equivalent of this slice?

obj[start:stop:step]

functionally equivalent to (I think

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