We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aad7cf commit 35653c5Copy full SHA for 35653c5
Readme.md
@@ -669,6 +669,9 @@ Note that the syntax changed in Python 3.0: you can just say super().__init__()
669
http://stackoverflow.com/questions/576169/understanding-python-super-with-init-methods
670
671
## 30 range and xrange
672
+都在循环时使用,xrange内存性能更好。
673
+for i in range(0, 20):
674
+for i in xrange(0, 20):
675
What is the difference between range and xrange functions in Python 2.X?
676
range creates a list, so if you do range(1, 10000000) it creates a list in memory with 9999999 elements.
677
xrange is a sequence object that evaluates lazily.
0 commit comments