python3在sublime3下的input()函数无法通过换行符结束键盘输入

1.安装SublimeREPL插件
2.首选项-快捷键设置-输入以下设置自定义快捷键F5代替原来的编译方式。

[
{"keys": ["f5"],"command": "repl_open", 
"caption": "Python - RUN current file", 
"id": "repl_python_run", 
"mnemonic": "R", 
"args": { 
"type": "subprocess", 
"encoding": "utf8", 
"cmd": ["python", "-u", "$file_basename"], 
"cwd": "$file_path", 
"syntax": "Packages/Python/Python.tmLanguage", 
"external_id": "python", 
"extend_env": {"PYTHONIOENCODING": "utf-8"} 
} 
} 
]

你可能感兴趣的:(python3在sublime3下的input()函数无法通过换行符结束键盘输入)