今天运行numpy 的时候发现 数据显示不全,而是用省略号省略了大量数据,
如下:
[4.27970709 4.35135011 3.21434056 ... 4.32352941 3.70769231 4.00900901]
经过搜索,解决方案如下:
在文档内添加:
np.set_printoptions(threshold=np.inf)
便可
[4.27970709 4.35135011 3.21434056 4.32936924 3.77222356 4.19069602
4.14847667 3.7104063 3.60441603 4.18698401 4.16939676 4.03404075
4.04682502 3.82558626 4.05710272 3.99478515 4.13342196 4.41873226
4.27182761 3.85313107 4.35869708 3.63055579 4.22941815 4.43078013
4.52594093 3.62094553 4.4433393 3.66332251 3.71307652 3.90689798
4.38288678 3.84489556 4.00132696 3.09243915 3.60217586 4.06731208
4.09733364 3.86378671 4.33988028 3.26011414 3.99237444 3.99793408
4.0338572 3.72696144 3.83321867 3.96129717 4.30700404 3.9314391
3.21735997 4.31107629 3.84501845 3.37754678 3.61122159 4.10993976
3.8923221 3.3549242 3.92580222 3.82634345 4.11031839 3.78915329
3.70528053 3.88598633 3.72934057 3.83884872 4.03117741 4.21623023
4.21769773 3.98013356 3.85864698 4.25822127 3.71256633 4.11966186]