【Python之numpy库】11.np.set_printoptions(threshold=np.inf) 解决输出数组时的省略情况

当数组元素比较多的时候,如果输出该数组,那么会出现省略号

解决方法:在程序前写如下代码

import numpy as np

np.set_printoptions(threshold=np.inf)

猜你喜欢

转载自blog.csdn.net/m0_53392188/article/details/119720955