sublime3运行python_如何在Sublime Text 3中运行Python3.5

蒲寂离
2023-12-01

如果您已经安装了python3和SublimeREPL,那么可以尝试使用python3文件的正确路径设置密钥绑定。[

{

"keys":["super+ctrl+r"],

"command": "repl_open",

"caption": "Python 3.6 - Open File",

"id": "repl_python",

"mnemonic": "p",

"args": {

"type": "subprocess",

"encoding": "utf8",

"cmd": ["The directory to your python3.6 file", "-i", "$file"],

"cwd": "$file_path",

"syntax": "Packages/Python/Python.tmLanguage",

"external_id": "python",

"extend_env": {"PYTHONIOENCODING": "utf-8"}

}

}

]

您可以尝试将此代码复制到/Sublime Text 3/Preferences/Key Bindings/

希望这有帮助!

 类似资料: