美文网首页
让sublime支持带input()的python程序运行

让sublime支持带input()的python程序运行

作者: 红豆汤来两大碗 | 来源:发表于2020-09-07 17:08 被阅读0次

    让sublime支持带input()的python程序运行

    看了很多教程,都不全,补全一下。
    主要参考: https://www.jianshu.com/p/dd36e4af2b82

    1. ctrl+shift+p,调出包管理器:输入install package

    2. 输入sublimeREPL,点击安装

    3. 运行:

      • 点击tool,找到sublimeREPL,然后选择Python - RUN current file

      • 设置快捷键:

        • ctrl+shift+p——install package——安装ChainOfCommand
        • preferences->Key Binding-User中插入代码
      [
          {
              "keys":["f5"],
              "caption":"SublimeREPL: save & Python - RUN current file",
              "command":"chain",
              "args":
              {"commands":[
               ["save"],
               [ "run_existing_window_command",{"id": "repl_python_run","file": "config/Python/Main.sublime-menu"}]
                  ]
              }
          },
       { "keys": ["ctrl+n"], "command": "cancel_build" },
      ]
      
      

    相关文章

      网友评论

          本文标题:让sublime支持带input()的python程序运行

          本文链接:https://www.haomeiwen.com/subject/asjlektx.html