importing izip from itertools module gives NameError in Python 3.x

前端 未结 3 1520
囚心锁ツ
囚心锁ツ 2020-11-27 20:37

I am trying to import the izip module like so:

from itertools import izip

However after recently changing over from Python 2.7 to 3 - it d

3条回答
  •  情话喂你
    2020-11-27 21:04

    Use zip instead of izip directly in python 3, no need to import anything.

    For further visit here.

提交回复
热议问题