title: how to convert array into dictionary in python?
body: <p>basically I want to know that how to convert array into dictionary in python.</p>
  <pre><code>import numpy as np
  a=np.array(\[23,34,23,45,23\])
  print(a)
  </code></pre>
  <p><strong>output</strong>
  [23 34 23 45 23]</p>
  <p>but i want</p>
  <pre><code>{0:&quot;23&quot;,1:&quot;34&quot;,2:&quot;23&quot;,3:&quot;45&quot;,4:&quot;23&quot;}
  </code></pre>