numpy输出有省略号的问题

发现很多文章都说加一句

np.set_printoptions(threshold="nan")

或者

np.set_printoptions(threshold=np.nan)

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

正解:

np.set_printoptions(threshold=np.inf)

猜你喜欢

转载自www.cnblogs.com/dgwzq/p/11734997.html