请问徐老师,为什么我在Python上执行3行小程序不是那个效果呢?
```
import time
a = [0]*64*1024*1024
start = int(time.time()*1000)
for i in range(0, len(a)):
a[i] *= 3
print '1,', int(time.time()*1000) - start
start = int(time.time()*1000)
for j in range(0, len(a), 16):
a[j] *= 3
print '2,', int(time.time()*1000) - start
输出:
1, 11804
2, 538
```
展开