python之range(), xrange()

可以这样理解:

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

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

原文地址:https://www.cnblogs.com/zolo/p/5849025.html