是否有任何Python IDE允许您像R一样运行一些代码? [英] Does any Python IDE let you run a selection of code like R does?

查看:110
本文介绍了是否有任何Python IDE允许您像R一样运行一些代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为这对初学者来说非常有用。当我学习R时,我会将每个课程的笔记保存在一个文件中并执行我想要的行。现在我正在学习Python,我必须将每个新东西保存在不同的文件中。是否没有可以做R所做的IDE?我目前正在使用PyCharm。

I think this is a very useful feature for beginners. When I learned R, I would keep my notes for each lesson in one file and execute the lines that I wanted. Now I'm learning Python, and I have to save each new thing in a different file. Is there no IDE that can do what R does? I'm currently using PyCharm.

推荐答案

在PyCharm中,选择要执行的代码片段,然后选择在控制台中执行选择 (我的键盘映射中的Alt + Shift + E)。

In PyCharm, select a code fragment you want to execute then choose "Execute selection in console" (Alt+Shift+E in my keymap).

这篇关于是否有任何Python IDE允许您像R一样运行一些代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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