如何在sublime3中直接运行python

阅读 76

2023-05-07


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)

0 0 举报