Undoing the \n escape sequence

前端 未结 0 1303
傲寒
傲寒 2020-11-29 15:30

I had a doubt in python programming. I typed the following code:

print(\'Hello\\n\'*5, end = \'World\')

which gave me an output: Hello Hello Hello

相关标签:
回答
  • 消灭零回复
提交回复
热议问题