Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试打印时
Good Morning
我用了
print("Good\nMorning")
但结果是
Good\nMorning
PyDev Eclipse 控制台是否支持转义字符(序列)?
嗯,这很奇怪,就好像你真的在做一样print repr("Good\nMorning")。不知道为什么会发生这种情况(它在 PyDev 中对我来说应该有效)......
print repr("Good\nMorning")
您是否尝试过使用调试器进入打印以检查实际发生的情况?