Python 2 和 Python 3 中 zip() 函数的区别

Jer*_*hez 7 python zip

我想知道zip()python 2 和 python 3 中的函数有什么区别。我注意到timeit在这两个函数上使用模块时,python 3 函数要快得多。非常感谢提前:)

Axi*_*xis 5

Python 2 和 Python 3 之间的区别在于 Python 3 返回一个迭代器。这种节省内存的想法。