itemindex = numpy.where(array==item)
numpy得到数组的index
原文:http://www.cnblogs.com/huangshiyu13/p/6944861.html