This is my personal sublime text3 python configuration scheme (the method is from the Internet, some from the official website). Every configuration I will try to give the source.
Package Control First
Sublime Text 3 Install the package Control
Installing SUBLIMEREPL
Ctrl+shift+p type Install packages;
Wait a moment and then type SUBLIMEREPL to install;
You can see the effect by looking at the options Tools->sublimerepl->python.
Keyed bindings
Of course, every time through Tools->sublimerepl->python this way is more cumbersome
It will be much easier to bind such an operation to a key like F1.
e.g. open the Preferences->key bindings-user and copy the code:
{"keys":["f1"],"caption": "SublimeREPL: Python","command": "run_existing_window_command", "args":{"id": "repl_python","file": "config/Python/Main.sublime-menu"}}
Sublime Personal python Configuration