简体   繁体   English

VScode python 不输出

[英]VScode python not ouput

Why is there no output in my vs code python.为什么我的 vs 代码 python 中没有 output。

在此处输入图像描述

Try saving your file before running it.在运行之前尝试保存文件。

You can do this very quickly using the shortcut Crtl + S .您可以使用快捷键Crtl + S快速完成此操作。

first you have to save your code by pressing ctrl+s .首先你必须通过按ctrl+s来保存你的代码。 By default python output will be displayed on Vscode " Terminal ".默认情况下 python output 将显示在 Vscode“终端”上。 To display the result in " Output " use " Code Runner " extension.要在“ Output ”中显示结果,请使用“ Code Runner ”扩展。


Code Runner extension代码运行器扩展

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM