简体   繁体   English

PyDev Eclipse控制台是否支持转义字符(序列)?

[英]Does PyDev Eclipse console support escape characters(sequences)?

When I try to print 当我尝试打印时

Good
Morning

I used 我用了

print("Good\nMorning")

But the result was 但是结果是

Good\nMorning

Does PyDev Eclipse console support escape characters (sequences)? PyDev Eclipse控制台是否支持转义字符(序列)?

Humm, that's weird, it's as if you're actually doing print repr("Good\\nMorning") . 嗯,这很奇怪,就好像您实际上正在执行print repr("Good\\nMorning") Not sure why that is happening (it works as it should for me inside PyDev)... 不知道为什么会发生这种情况(在PyDev中它应该对我有效)...

Have you tried using the debugger to step into the print to check what's actually going on? 您是否尝试过使用调试器进入打印页面以检查实际情况?

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

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