Does Pycharm have Interactive Python Interpreter?(Pycharm 有交互式 Python 解释器吗?)
问题描述
我是一个相当新的 Pycharm 用户,最近从其他 IDE 切换过来.
I am a fairly new Pycharm user switched from other IDEs recently.
我的一个问题是关于交互式 python 解释器的,它是我可以在运行脚本后输入变量以检查它们的窗口".Pyscripter 有一个叫做Python 解释器"的东西,我知道 Pycharm 也有.
One question I have is about the interactive python interpreter, which is the "window" I can type in variables to check them after I ran my script. Pyscripter has this thing called "Python interpreter" and I know Pycharm also has.
我在工具"下尝试了Python 控制台",但我认为这不是一回事.所以我想知道如何在 Pycharm 中找到这个 Python 解释器?我正在使用社区版本 3.
I tried "Python Console" under "Tools", but I don't think it's the same thing. So I am wondering how I can find this Python Interpreter in Pycharm? I am using Community version 3.
推荐答案
我用的是Pycharm社区版版本2016.1.2
我做如下调试的时候得到一个交互提示
I'm using Pycharm community edition version 2016.1.2
I do the following to get an interactive prompt when debugging
- 调试文件(在要使用的地方放置断点)
- 在调试窗口中,应该有一个控制台"选项卡,选择它
- 在控制台的左侧工具栏上,有一个从底部倒数第二个显示 Python 提示"的按钮.按下它
- 您现在应该会看到可以在控制台中使用的交互式提示(允许您与正在运行的代码进行交互)
如 OP 中所述,要在正在运行的脚本之外获得交互式 python 提示,请在主菜单栏中选择 Tools->Python Console
As mentioned in the OP, to just get an interactive python prompt outside a running script, in the main menu bar select Tools->Python Console
这会神奇地出现:
这篇关于Pycharm 有交互式 Python 解释器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!