问题描述
使用numpy输出矩阵,输出窗口后面还有好大的空间,但是矩阵却自动换行了。
解决方案
添加代码
python
import numpy as np
np.set_printoptions(linewidth=400)
解决效果

使用numpy输出矩阵,输出窗口后面还有好大的空间,但是矩阵却自动换行了。
添加代码
import numpy as np
np.set_printoptions(linewidth=400)