a = numpy.insert(a, index, 1) in this case you can put the 1 where you desire, using index to set the position in the array ...
確定! 回上一頁