Pycharm是否具有交互式Python解释器?

编程入门 行业动态 更新时间:2024-10-23 16:21:27
本文介绍了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

  • 调试文件(在要使用的位置放置断点)
  • 在调试窗口中,应有一个控制台"选项卡,将其选中
  • 在控制台的左侧工具栏上,从底部显示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解释器?

    本文发布于:2023-11-10 00:59:11,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1573927.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:Pycharm   Python

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!