title: Python split string by space and strip newline char
body: <p>I have a string in python that looks like:</p>
  
  <pre><code>d4 c3 b2 a1 02 00 04 00  00 00 00 00 00 00 00 00 
  ff ff 00 00 01 00 00 00  00 00 00 00 00 00 00 00 
  36 00 00 00 36 00 00 00  00 1c 23 10 f8 f1 00 1b 
  17 01 10 20 08 00 45 00  00 28 df 27 40 00 80 06 
  2b 87 c7 08 1a 0a 0a 05  05 0a 5c ea 5c ea c2 1f 
  </code></pre>
  
  <p>There're many more lines that I skipped. I want to put each of the numbers in a list. When I use .split(), it returns me a list of not just numbers, but also spaces and '\n's, because there're two spaces in the middle of the matrix and there're newlines chars at the end of each line. So I got:</p>
  
  <pre><code>['d4', 'c3', 'b2', 'a1', '02', '00', '04', '00', '', '00', …, '\nff', 'ff', '00'…]
  </code></pre>
  
  <p>I just want the numbers to be in the list, not anything else, anybody knows how to do it? Thanks for your time in advance.</p>