如何在sublime text中进入python3交互模式

2025-03-05 10:18:15
推荐回答(1个)
回答1:

默认的是 alt + p

你也可以在  首选项 ==》 按键绑定-用户 里面设置

具体操作:


另外附上我自己的配置代码,在修改配置代码之前,请先备份自己的。

[
{"keys":["f1"],
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command", "args":
{"id": "repl_python_run","file": "config/Python/Main.sublime-menu"}
},
{"keys":["f2"],
"caption": "SublimeREPL: Python - IPython",
"command": "run_existing_window_command", "args":
{"id": "repl_python_ipython","file": "config/Python/Main.sublime-menu"}
}
]

修改完成后,保存,然后,按下对应的快捷键即可。如果有问题请重新打开Sublime Text 3。如果仍然出现问题,你还原你所备份的Sublime Text 3默认配置,默认配置的交互快捷键为:alt + p