python-numeric 会吃掉你的所有内存

04 May 2007
下面这段python代码会吃掉你的所有内存,是时候抛弃python-numeric了


import Numeric
import numpy
a = Numeric.zeros([1, 1])
while True:
a[0, 0] = numpy.int32(0)

Tags: python, python-numeric

Related Posts:

comments powered by Disqus
Copyright © 2017 LI Daobing, Powered by github:pages, Jekyll, bootstrap, Designed by quanquan
Fork me on GitHub