Sublime Text 3 Python交互式控制台? [英] Sublime Text 3 Python Interactive Console?

查看:219
本文介绍了Sublime Text 3 Python交互式控制台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用很多Sublime Text 3编写python。但是,只要我制作的程序需要用户输入,就什么也不会发生。例如:

I have been using a lot of sublime text 3 to write python. However, whenever a program I make needs user input, nothing happens. For example:

number = input("What is your favorite number?: ")
print(number)

这只是在控制台中给了我输入提示,但是我键入的任何内容都会被忽略。

This simply gives me the input prompt in the console, but anything that I type is ignored. The

print(number)

永远不会运行。有没有一种方法可以使用交互式控制台来显示Sublime Text 3?我听说有一种叫做REPL的东西可以在ST2中完成这项工作,但是我想在ST3中为python3使用交互式控制台。

is never run. Is there a way to use an interactive console for sublime text 3? I have heard of something called REPL that will do the job in ST2, but I want to use an interactive console for python3 in ST3.

到目前为止,我只是运行需要从终端输入的程序。有时我会使用Pycharm,但我仍然习惯于pycharm。

As of now, I just run programs that need input from terminal. Sometimes I'll use Pycharm, but I'm still getting used to pycharm.

推荐答案

SublimeREPL适用于python3。他们的当前版本实际上都已针对ST3进行了测试。

SublimeREPL works for python3. Their current builds are actually all tested against ST3.

https: //github.com/wuub/SublimeREPL

这篇关于Sublime Text 3 Python交互式控制台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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