python之range(), xrange()

可以这样理解:

range()立即执行,返回结果

xrange()延迟执行,需要时再返回结果.

posted @ 2016-09-07 12:53  zolo®  阅读(128)  评论(0编辑  收藏  举报