如何在 SublimeREPL 上运行 Python 代码 [英] How to Run Python Code on SublimeREPL

查看:23
本文介绍了如何在 SublimeREPL 上运行 Python 代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的很喜欢使用 sublime text 2 来编写 Python 代码,但是每当我尝试运行具有输入的脚本时,sublime text 控制台都会报告错误.所以,我决定尝试 SublimeREPL,但是我已经搜索了几个小时,但我没有找到如何运行 Python 代码......你们能帮我吗?

I really like using sublime text 2 to write Python codes, however any time I try to run a script which has an input, the sublime text console reports an error. So, I decided to try SublimeREPL, however I've been searching for hours and I didn't find out how to run Python code... could you guys help me?

我想在 SublimeREPL 上运行代码,就像我们在 sublime 文本控制台 (CTRL+b) 上所做的一样.我真正想知道的是有一种方法可以对 SublimeREPL 做同样的事情.

I want to run the code on SublimeREPL as we do with the sublime text console (CTRL+b).. what I actually want to know is whether or not there's a way to do the same with SublimeREPL.

先谢谢你!

推荐答案

First "Install Package Control" from https://sublime.wbond.net/installation#st2

First "Install Package Control" from https://sublime.wbond.net/installation#st2

可选(检查以上包是否安装成功:单击 Preferences >浏览包...在这个文件夹点击Back Button一次,然后进入Installed Packages/文件夹,查看是否有Package Control.sublime-package文件)

Optional(To check the above package is successfully installed: Click the Preferences > Browse Packages… at this folder Click Back Button one time and then into the Installed Packages/ folder, check there will be Package Control.sublime-package file)

然后转到首选项>包控制包控制:在 sublime text 2 中安装包

在列表中找到 SublimeREPL.

重启 SublimeText2

Restart SublimeText2

打开<代码>首选项>包设置 >SublimeREPL >设置 - 默认 文件从那里复制所有文本.

open Preferences > Package Settings > SublimeREPL > Settings - Default file copy all text from there.

然后打开 Preferences >包设置 >SublimeREPL >设置 - 用户并在此处粘贴文本.

then open Preferences > Package Settings > SublimeREPL > Settings - User and paste the text here.

重启 SublimeText2

Restart SublimeText2

转到<代码>工具>SublimeREPL >蟒蛇>Python

大功告成

这篇关于如何在 SublimeREPL 上运行 Python 代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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