Python性能分析指南(7)

发表于:2013-11-12来源:开源中国社区作者:袁不语点击数: 标签:性能测试
14 j = (m * m - 3 ) / 2 15 s[j] = 0 16 while jhalf: 17 s[j] = 0 18 j + = m 19 i = i + 1 20 m = 2 * i + 3 21 return [ 2 ] + [x for x in s if x]
14             j=(m*m-3)/2
15             s[j]=0
16             while j<half:
17                 s[j]=0
18                 j+=m
19         i=i+1
20         m=2*i+3
21     return [2]+[x for x in s if x]

原文转自:http://www.oschina.net/translate/python-performance-analysis