PyCharm,请在每次运行程序时停止清除控制台 [英] PyCharm, stop the console from clearing every time you run the program

查看:944
本文介绍了PyCharm,请在每次运行程序时停止清除控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我刚从Spyder切换到PyCharm.在Spyder中,每次您运行该程序时,只是将控制台添加到控制台,而不是将其清除.这非常有用,因为我可以浏览控制台以查看对代码所做的更改如何更改程序的输出(显然,控制台具有最大长度,因此最终将清除所有内容)

So I have just switched over from Spyder to PyCharm. In Spyder, each time you run the program, the console just gets added to, not cleared. This was very useful because I could look through the console to see how my changes to the code were changing the outputs of the program (obviously the console had a maximum length so stuff would get cleared eventually)

但是,每次我运行程序时,在PyCharm中都会清除控制台.当然,必须有一种方法可以更改此设置,但是我找不到设置.谢谢.

However in PyCharm each time I run the program the console is cleared. Surely there must be a way to change this, but I can't find the setting. Thanks.

推荐答案

在Spyder中,因为您正在运行iPython,所以输出在那里.

In Spyder the output is there because you are running iPython.

在PyCharm中,您可以通过按View -> Scientific Mode来获得相同的效果. 然后,每次运行时,您都会在其中看到新的输出和历史记录.

In PyCharm you can get the same by pressing on View -> Scientific Mode. Then every time you run you see a the new output and the history there.

这篇关于PyCharm,请在每次运行程序时停止清除控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆