python交互式解释器是什么,Pycharm是否具有交互式Python解释器?

I am a fairly new Pycharm user switched from other IDEs recently.

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.

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.

解决方案

I'm using Pycharm community edition version 2016.1.2 I do the following to get an interactive prompt when debugging

Debug a file (put a breakpoint somewhere you want to work with)

In the debug window, there should be a 'Console' tab, select it

On the left tool bar of the console, there is a button 2nd from bottom "Show Python Prompt". Press it

You should now see an intereractive prompt you can use inside the console (allowing you to interact with the running code)

63d16a413803d37731acd8646cee3d5a.png

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

xmI58.png

Magically this will appear:

671ac111745030b51f0245f192223019.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值