【问题标题】:How to save your typed python program in Windows PowerShell? [closed]如何在 Windows PowerShell 中保存键入的 python 程序? [关闭]
【发布时间】:2021-05-02 10:08:34
【问题描述】:

我目前正在学习 Python。我下载了 Python 3.9 并在我的笔记本电脑中的 Windows PowerShell 中键入了几行代码。在 PowerShell 中编写几行 python 程序并按下 Enter 按钮后,它会立即在输入代码的下方显示输出。但是,如何在 PowerShell 中保存我的这个类型化的 Python 程序?

【问题讨论】:

    标签: python windows save


    【解决方案1】:

    改为使用文本编辑器,Powershell 不是文本编辑器,您使用 Powershell 来提供指令,例如 Launch python。 IDLE 带有 python 并且相当简单,我个人喜欢 VS Code for python,因为它很容易设置为启动 Python 程序。 Pycharm 是我目前用于 Python 的 IDE,但对于初学者来说绝对是矫枉过正。

    VS Code 伙伴,记得把你的程序保存为 .py

    【讨论】:

    • 好的。谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-12-22
    • 1970-01-01
    • 2021-10-16
    • 1970-01-01
    • 2019-02-10
    • 2014-12-19
    • 1970-01-01
    相关资源
    最近更新 更多