如何在VS代码中显示输入和输出(例如在线编译器)?

问题描述 投票:0回答:1
当在VS代码终端运行程序时,输入和输出将在同一终端窗口中打印。

但我希望像在线编译器中一样清楚地分开输入和输出。

eg:

(来自核编译器enter image description here 特别是在解决多个测试用例的CP问题时,我失去了输出的跟踪。 there是查看输入和输出的任务,类似于在线编码平台:

{ "label": "Run Python with i/o", "type": "shell", "command": "cls & echo Input: & python a.py > temp.txt & echo. & echo Output: & type temp.txt & del temp.txt", "presentation": { "showReuseMessage": false } }

visual-studio-code output user-input
1个回答
0
投票
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.