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")
デバッガーを使用して印刷にステップインし、実際に何が起こっているかを確認しようとしましたか?