Home  >  Article  >  Development Tools  >  Solve the problem that input() in python cannot be run in sublime text3

Solve the problem that input() in python cannot be run in sublime text3

藏色散人
藏色散人forward
2020-12-24 15:38:553187browse

The tutorial column of sublime below will introduce to you the solution to the problem that input() in python cannot be run in sublime text3. I hope it will be helpful to friends in need!

Solve the problem that input() in python cannot be run in sublime text3

The method is referenced from the Internet and is only for records.

1. Ctrl shift P, enter install package control in the pop-up input box;

2. Ctrl shift p, enter/select Package Control: Install Package, and then in the new Enter SublimeREPL in the input box, press Enter

3, , click Preferences—Key Buildings in turn, enter the following content, then save and set The key F5 (can be modified at will) is the shortcut key for running the program

[
    { "keys": ["f5"], "caption": "SublimeREPL:Python", 
                      "command": "run_existing_window_command", "args":
                      {
                           "id": "repl_python_run",
                           "file": "config/Python/Main.sublime-menu"
                      } 
    },
]

4. After the configuration is completed, when you need to run a program with input (), just press F5.

The above is the detailed content of Solve the problem that input() in python cannot be run in sublime text3. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete