title: Python how to read and split a line to several integers
body: <p>For input file separate by space/tab like:</p>
  
  <pre><code>1 2 3
  4 5 6
  7 8 9
  </code></pre>
  
  <p>How to read the line and split the integers, then save into either lists or tuples? Thanks.</p>
  
  <pre><code>data = [[1,2,3], [4,5,6], [7,8,9]]
  data = [(1,2,3), (4,5,6), (7,8,9)]
  </code></pre>