title: How to read numbers from file in Python?
body: <p>I'd like to read numbers from file into two dimensional array. </p>
  
  <p>File contents:</p>
  
  <ul>
  <li>line containing w, h</li>
  <li>h lines containing w integers separated with space</li>
  </ul>
  
  <p>For example:</p>
  
  <pre><code>4 3
  1 2 3 4
  2 3 4 5
  6 7 8 9
  </code></pre>