【问题标题】:run py files in atom text editor like in cmd像在 cmd 中一样在 atom 文本编辑器中运行 py 文件
【发布时间】:2018-12-12 05:42:32
【问题描述】:

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

简而言之:

How can i run py files in cmd console with shortcut

我正在使用窗户

【问题讨论】:

  • 您使用的是什么操作系统?你的文件在哪里? “使用快捷方式”是什么意思?

标签: python atom-editor idl


【解决方案1】:

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

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

【讨论】:

    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 2016-05-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-06
      • 2016-01-05
      • 2022-10-23
      • 1970-01-01
      • 2021-09-28
      相关资源
      最近更新 更多