我是Mac系统,用的python3.9,但是安装好SublimeREPL后使用的时候默认用python2.7
默认使用python3: 1.菜单栏Sublime Text -> Preferences -> Browse Packages打开SublimeREPL/config/Python/Main.sublime-menu
2.把"cmd"后面的python改成python33.检查版本:Tools–>SublimeREPL–>Python–>Python
成功!
快捷键: 1.Preferences->Key BindingsDefault(Windows).sublime-keymap文件输入以下内容:
[
{"keys":["command+p"],
"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"}]
]}
}
]
保存即可。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)