【Python】print array时array中间是省略号没有输出全部的解决方法

在开头加入:

import numpy as np
np.set_printoptions(threshold=np.inf)

  

大量元素情况

可以采用set_printoptions(threshold='nan')
set_printoptions(threshold='nan')

  

posted @ 2018-01-26 14:10  陈泽泽  阅读(4576)  评论(0编辑  收藏  举报