如何在sublime3中直接运行python
来源:互联网 发布:js地图效果 点击省份 编辑:程序博客网 时间:2024/05/16 12:56
from http://www.cnblogs.com/muzizongheng/p/3172998.html
Sublime Text: [Decode error - output not utf-8]
今天编译Python时, 输出窗口信息出现:
[Decode error - output not utf-8]
[Decode error - output not utf-8]
[Decode error - output not utf-8]
发现是print不支持中文字符的输出, 需要修改python的build的setting, 打开Python.sublime-build,
修改为:
{
"cmd": ["C:/Python33/python.exe", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
"encoding": "cp936"
}
"cmd": ["C:/Python33/python.exe", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
"encoding": "cp936"
}
其它参考:
Sublime Text2里面有个tools --》build
可能之前我已经装过一些插件了,所以这样就直接可以运行了。
http://www.oschina.net/question/233658_43978
0 0
- 如何在sublime3中直接运行python
- 如何在ubantu中直接运行python文件
- 在notepad++中直接运行python脚本
- 在notepad++中直接运行python代码
- 如何在python下直接运行py程序
- 如何在python shell下直接运行py程序
- 在notepad++中直接运行python代码快捷方式设置
- 如何在EF中直接运行SQL命令
- 如何在Visual Studio Code中直接运行html代码
- 在Sublime3中使用ESLint
- 直接在浏览器运行Python代码
- 初次使用python之在notepad++中直接运行python代码
- 路径设置:初次使用python之在notepad++中直接运行python代码
- Powershell 中直接运行 Python 的文件
- 在NotePad++中直接运行TCL
- 在Eclipse中直接运行Mapreduce程序
- 如何在Windows系统中设置Python程序定时运行
- 如何在Visual Studio Code 中运行 Python
- 《c++程序设计--谭浩强》读书笔记
- Javascript Tool: Detect if a DOM Element is Truly Visible
- VisionMobile:iOS8–Apple隐藏的议程
- ORA-15041: diskgroup space exhausted
- Lua面向对象
- 如何在sublime3中直接运行python
- 黑马程序员_GUI图形用户界面
- Intellij idea常用快捷键
- setup factor 打包界面 按钮操作
- 使用Tcl脚本分配FPGA管脚
- 事务四大特性
- fsx 10的观点
- CI+Smarty的配置及引用步骤
- jquery实现高度的获取-位置函数