【发布时间】:2021-09-10 01:45:35
【问题描述】:
当我使用 VS Code 运行 Python 代码时,有什么方法可以删除出现的消息?我只想让程序出现在输出中。
运行程序后,它会给出一个输出:
终端:
Windows PowerShell 版权所有 (C) Microsoft Corporation。版权所有。安装最新的 PowerShell 以获得新功能和改进! https://aka.ms/PSWindows PS C:\Users\domin\Documents\Python - URI> &
【问题讨论】:
-
搜索用于不显示此消息的 shell 的命令行选项,然后尝试将 VSC 配置为使用此选项
-
不特定于删除 powershell 横幅,但为了在运行 Python 应用程序时获得清晰的输出,请在此处查看我的答案:How to hide file paths when running Python scripts in VS Code?
标签: powershell visual-studio-code