Fastest way to convert an iterator to a list

前端 未结 3 1683
-上瘾入骨i
-上瘾入骨i 2020-11-28 05:58

Having an iterator object, is there something faster, better or more correct than a list comprehension to get a list of the objects returned by the iterator?

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