将 cdef np.ndarray[np.int_t, ndim=1] order = scores.argsort()[::-1]
改成:
cdef np.ndarray[np.intp_t, ndim=1] order = scores.argsort()[::-1]
记得setup.py一下
将 cdef np.ndarray[np.int_t, ndim=1] order = scores.argsort()[::-1]
改成:
cdef np.ndarray[np.intp_t, ndim=1] order = scores.argsort()[::-1]
记得setup.py一下