How to print '\n' instead of a newline?

前端 未结 11 562
南方客
南方客 2020-12-11 04:34

I am writing a program that uses prints a hex dump of its input. However, I\'m running into problems when newlines, tabs, etc are passed in and destroying my output formatti

11条回答
  •  春和景丽
    2020-12-11 05:00

    Print "\\n" – "\\" produces "\" and then "n" is recognized as an ordinary symbol. For more information see here.

提交回复
热议问题