numpy.matrix.put# 方法 matrix.put(indices, values, mode='raise')# 为 indices 中所有 n 设置 a.flat[n] = values[n]。 请参阅 numpy.put 以获取完整文档。 另请参阅 numpy.put等效函数