使Sublime Text 3 支持Python input()函数

使Sublime Text 3 支持Python input()函数

三月 24, 2018 阅读 826 字数 511 评论 0 喜欢 0

安装插件

Ctrl+Shift+P → install Package →SublimeREPL

使用

点击<Tools–SublimeREPL–Python–Python-RUN current file>运行.py文件

点击<Tools–SublimeREPL–Python–Python>打开Python交互环境

设置快捷键

[
[
    {
        "keys": ["f5"],//自定义快捷键
        "caption": "SublimeREPL: Python",
        "command": "run_existing_window_command", "args":
        {
            "id": "repl_python",
            "file": "config/Python/Main.sublime-menu"
        }
    },
    {
        "keys": ["f4"],//自定义快捷键
        "caption": "SublimeREPL: Python - RUN current file",
        "command": "run_existing_window_command", "args":
        {
            "id": "repl_python_run",
            "file": "config/Python/Main.sublime-menu"
        }
    }
]

 

 

发表评论