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

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

问题描述

我真的很喜欢使用sublime文本2编写Python代码,但是,每当我尝试运行具有输入的脚本时,sublime文本控制台都会报告错误.因此,我决定尝试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?

我想像在sublime文本控制台(CTRL+b)上那样在SublimeREPL上运行代码..我真正想知道的是是否有一种方法可以对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.

先谢谢您!

推荐答案

https://sublime中的第一个"Install Package Control". wbond.net/installation#st2

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

可选(要检查以上软件包是否已成功安装,请执行以下操作: 单击此文件夹中的Preferences > Browse Packages… 单击一次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)

然后转到精美文字2中的Preferences > Package Control > Package Control: Install Package

then go to Preferences > Package Control > Package Control: Install Package in sublime text 2

在列表中找到SublimeREPL.

重新启动SublimeText2

Restart SublimeText2

打开Preferences > Package Settings > SublimeREPL > Settings - Default文件,从那里复制所有文本.

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

然后打开Preferences > Package Settings > SublimeREPL > Settings - User并将文本粘贴到此处.

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

重新启动SublimeText2

Restart SublimeText2

转到Tools > SublimeREPL > Python > Python

您完成了

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

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