gpt4 book ai didi

python - 在 Visual Studio Code 中简化 Python 输出

转载 作者:行者123 更新时间:2023-12-04 15:05:06 26 4
gpt4 key购买 nike

在 visual studio code 中,我想运行简单的 python 代码(使用代码运行器扩展),它会为我提供有关运行时和文件位置的信息。我不想要那个,我可以把它剪掉,只有输出吗?

Image

最佳答案

由于您使用“Code Runner”扩展,我们可以设置它:

  1. 我们可以在“settings.json”中添加以下设置:

"code-runner.showExecutionMessage": false,

  1. 或者在“设置”中找到“showExecutionMessage”选项,取消勾选:

    enter image description here

运行:

enter image description here

关于python - 在 Visual Studio Code 中简化 Python 输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66306190/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com