为什么prinf中不能使用\n
#111
-
|
请求格式是以下: 服务器端则会返回以下内容: 当去掉prinf中的\n中系统又可以正常返回了 |
Beta Was this translation helpful? Give feedback.
Answered by
criyle
Jul 22, 2024
Replies: 1 comment 2 replies
-
|
具体现象就像是prinf中没有输入反引号是一样的,如: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
按照 JSON 的字符串标准,您应当转译字符串中出现的反斜线
\为\\那么\n应当为\\n