A RAM error of big array
<p>$$I need to get the numbers of one line randomly, and put each line in other array,then get the numbers of one col.</p>

<p>I have a big file, more than 400M. In that file, there are 13496*13496 number, means 13496 rows and 13496 cols. I want to read them to a array.
This is my code:</p>

<pre><code>_L1 = [[0 for col in range(13496)] for row in range(13496)]
_L1file = open('distanceCMD.function.txt')
while (i&lt;13496):
    print "i="+str(i)
    _strlf = _L1file.readline()
    _strlf = _strlf.split('\t')
    _strlf = _strlf[:-1]
    _L1[i] = _strlf
    i += 1
_L1file.close()
</code></pre>

<p>And this is my error massage:</p>

<pre><code>MemoryError:
File "D:\research\space-function\ART3.py", line 30, in &lt;module&gt;
  _strlf = _strlf.split('\t')
</code></pre>
