How to reverse a string which contains new line special character in python

后端 未结 0 1704
臣服心动
臣服心动 2021-02-05 00:34

I have a string

str="abcd\\nefgh\\nijkl"

and I need the output as:

output="lkji\\nhgfe\\ndcba"
<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题