sublime将python的运行结果在命令行显示

sublime将python的运行结果在命令行显示

  • 为什么这么折腾?
    因为每次查看输出结果都要上下拖动窗口,很烦。

将build system修改为

{
  "cmd": ["start", "cmd", "/k", "C:/Python35/python35.exe", "-u", "$file"],
  "file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
  "selector": "source.python",
  "encoding": "cp936",
  "shell":"true"
}

然后ctrl + B运行程序就可以把结果在命令行显示。

Markdown

但是新的问题出现了

  1. 运行的时候sublime下面还是会出现显示框;
  2. 只能手动关闭命令行,Esc键不管用。

更烦。

所以,我又换回了原来的方式。

原文地址:https://www.cnblogs.com/liutongqing/p/7338014.html