运行 atom 文本编辑器中的 py 文件,就像在 cmd 中一样

run py files in atom text editor like in cmd

我正在使用原子编辑器。我为 运行 我的程序安装了 atom 运行ner,但我遇到了太多问题。我想在 cmd 控制台中自动 运行 pyfiles。我该怎么做

简而言之:

How can i run py files in cmd console with shortcut

我正在使用windows

老实说,这与堆栈溢出无关,因为这不完全是计算机编程问题。更多的是操作系统问题。但是,我相信您可以在 windows 上安装 bash(linux 命令行),这将有助于解决您的问题。这是 link: https://www.windowscentral.com/how-install-bash-shell-command-line-windows-10

或者,如果您更喜欢使用 windows 命令行,此 link 可以解释如何 运行 python(尽管我建议使用 bash 而不是命令): http://www.cs.bu.edu/courses/cs108/guides/runpython.html

我建议您安装 "Script" 扩展,然后在编辑器中使用 cmnd-I 安装 运行 Atom。您的文件 运行s 在终端中。