python - 新手问题:为什么python中的vscode在调试控制台的打印语句之间会输出额外的换行符
问题描述
运行 vscode 1.33.1,带有 python 扩展的默认配置。
使用基本的打印语句,例如:
print("hello world1")
print("hello world2")
我希望调试控制台有以下输出:
hello world1
hello world2
相反,我得到:
hello world1
hello world2
似乎到处都有额外的换行符。
解决方案
VScode 用户更新到 1.33 版本后会遇到这个问题。这里的问题是 python 扩展发送额外的换行输出事件。这是一个错误,已在git中作为问题提出
推荐阅读
- python - python-magic 包是否可以检查格式为 .mp4 的视频文件的 mime 类型?
- c++ - 点周围的最小凸多边形
- jquery - 使用spring boot从html页面创建PDF
- gremlin - 如何在亚马逊海王星中删除图表
- visual-studio - 在 Visual Studio 2017 中未显示设计器拖放选项以使用 xamarin 制作移动应用程序
- c++ - 在 std::map 中替换现有条目并添加新条目
- swift - 文件中的 Swift Shell 命令回显
- jakarta-mail - Expunge 导致 Message 对象在被删除的消息之后重新编号
- apache - 指向 PDF 文档的链接必须是 noindex,请遵循
- python - 计算 CFD 网格中点之间的距离