numpy.where (condition[, x, y])
numpy.where() 有两种用法:
1. np.where(condition, x, y)
满足条件(condition),输出x,不满足输出y。
如果是一维数组,相当于[xv if c else yv for (c,xv,yv) in zip(condit...
由于在python2 中的默认编码为ascii,但是在python3中的默认编码为utf-8。
问题:
所以在使用np.load(det.npy)的时候会出现错误提示:
you may need to pass the encoding= option to numpy.load
解决方法:
当...