Sublime Text 3 Python Interactive Console? [duplicate]

断了今生、忘了曾经 提交于 2019-12-10 14:58:06

问题


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)

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.

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.


回答1:


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

https://github.com/wuub/SublimeREPL



来源:https://stackoverflow.com/questions/36212635/sublime-text-3-python-interactive-console

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!