我正在尝试让 SublimeREPL 与 Python 一起工作。但是,每当我使用键盘快捷键向 REPL 发送 Python 命令时,只会stdout
显示来自的输出。该命令的评估也应该显示,但不是。这是一个简洁的示例,在通过键盘快捷键将命令从 Python 源发送到 REPL 后,从 REPL 的输出中复制和粘贴。
>>> print 'This will print out'
This will print out
>>> 'But this will not'
>>> 1+1
我本来期望以下输出(从 Python 中的 BASH 终端手动运行会产生此输出):
>>> print 'This will print out'
This will print out
>>> 'But this will not'
'But this will not'
>>> 1+1
2
最后一点,直接在 Sublime Text REPL 中手动输入命令会产生所需的输出,但速度要慢得多且不方便。
我在 Ubuntu 13.10 上使用带有默认 Python 2.7.5 解释器的 SublimeText3 运行它。