Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 QtConsole 正在运行。每当我输出一个包含许多列的矩阵(例如)时,QtConsole 都会将矩阵包装到下一行。但是,断点仅在我的窗口的一半处。大量浪费的空白空间。如何让 QtConsole 在其输出中使用更多列?
如果您使用的是 numpy,请在np.set_printoptions. 尝试调整 linewidth 参数;默认值为 75。所以也许运行np.set_printoptions(linewidth=150)看看是否有帮助。
np.set_printoptions
np.set_printoptions(linewidth=150)