numpy输出有省略号的问题

发现很多文章都说加一句

np.set_printoptions(threshold="nan")

或者

np.set_printoptions(threshold=np.nan)

反正我是不行的,后来发现加 np.inf 可以完整输出内容,希望能帮到有需要的人

正解:

np.set_printoptions(threshold=np.inf)

 

posted @ 2019-10-24 21:20  dgwzq  阅读(1660)  评论(1)    收藏  举报