How to tell the difference between an iterator and an iterable?

前端 未结 4 589
醉梦人生
醉梦人生 2021-02-01 08:13

In Python the interface of an iterable is a subset of the iterator interface. This has the advantage that in many cases they can be treated in the same way. However, there is an

4条回答
提交回复
热议问题