Pycharm是否具有交互式Python解释器? [英] Does Pycharm have Interactive Python Interpreter?

查看:327
本文介绍了Pycharm是否具有交互式Python解释器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是来自其他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

  1. 调试文件(在要使用的位置放置断点)
  2. 在调试窗口中,应有一个控制台"选项卡,将其选中
  3. 在控制台的左侧工具栏上,从底部显示Python提示符"显示第2个按钮.按下
  4. 您现在应该会看到一个交互式提示,可以在控制台内使用(允许您与正在运行的代码进行交互)

如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解释器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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