Skip to content

Commit

Permalink
Merge pull request qiwsir#86 from leftjs/patch-2
Browse files Browse the repository at this point in the history
Update n005.md
  • Loading branch information
qiwsir committed Apr 3, 2016
2 parents 0ab93a8 + 92681c0 commit ae9ce01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion n005.md
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ Python 3中另一个优秀的改动是,如果我们试图比较无序类型,

##返回可迭代对象,而不是列表

在xrange一节中可以看到,某些函数和方法在Python中返回的是可迭代对象,而不像在Python 2中返回列表。
在xrange一节中可以看到,某些函数和方法在Python 3中返回的是可迭代对象,而不像在Python 2中返回列表。

由于通常对这些对象只遍历一次,所以这种方式会节省很多内存。然而,如果通过生成器来多次迭代这些对象,效率就不高了。

Expand Down

0 comments on commit ae9ce01

Please sign in to comment.