import numpy as np
np.set_printoptions(threshold=np.nan) #设置阈值为无限
转载自 python中输出省略号的问题解决
附加 set_printoption的文档说明