python error on string format with “\n” exec(compile(contents+“\n”, file, 'exec'), glob, loc)

前端 未结 0 1388
[愿得一人]
[愿得一人] 2020-12-06 21:57

i try to construct JSON with string that contains "\\n" in it like this :

ver_str= \'Package ID: version_1234\\nBuild\\nnumber: 154\\nBuilt\\n\'
pro         


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