0
点赞
收藏
分享

微信扫一扫

如何在sublime3中直接运行python


Sublime Text: [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"
   
 }






其它参考:

Sublime Text2里面有个tools --》build

可能之前我已经装过一些插件了,所以这样就直接可以运行了。




举报

相关推荐

0 条评论