简体   繁体   English

新手问题:为什么python中的vscode会在调试控制台中的print语句之间输出额外的换行符

[英]Newbie question: why does vscode in python output extra line breaks between print statements in the debug console

Running vscode 1.33.1, default configuration with python extension. 运行vscode 1.33.1,使用python扩展名进行默认配置。

Using basic print statements, eg: 使用基本打印语句,例如:

print("hello world1")
print("hello world2")

I'd expect the following output to the debug console: 我希望以下输出到调试控制台:

hello world1
hello world2

instead, I get: 相反,我得到:

hello world1

hello world2

seems to throw in extra line breaks everywhere. 似乎到处都是额外的换行符。

This issue is faced by VScode users after updating to version 1.33. 更新到版本1.33后,VScode用户将面临此问题。 The issue here is that the python extension sends extra newline output events. 这里的问题是python扩展发送额外的换行输出事件。 This is a bug and has already been raised as an issue in git 这是一个错误,已经在git中引发了一个问题

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

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