问题描述
我是来自其他IDE的相当新的Pycharm用户.
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提示符"显示第2个按钮.按下
- 您现在应该会看到一个交互式提示,可以在控制台内使用(允许您与正在运行的代码进行交互)
如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解释器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!