title: numpy slicing select parts of array
body: <p>I have a one dimensional array from which I would like to create a new array containing only parts of user wished sizes of the beginning, the middle, and the end of the former.</p>
  
  <pre><code>import numpy
  a = range(10)
  a
  array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
  </code></pre>
  
  <p>I would like b to be equal to:</p>
  
  <pre><code>b
  array([0, 1, 2, 5, 6, 7, 9])
  </code></pre>
  
  <p>Assuming that b is constructed of the concatenation of a[:3], a[5:6], and a[9].
  I can of course use things such as np.concatenate, but is there a way to do that with slicing method, or anything else in one line?</p>