Skip to content

为什么prinf中不能使用\n #111

Answered by criyle
21mw12 asked this question in Q&A
Jul 22, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

按照 JSON 的字符串标准,您应当转译字符串中出现的反斜线 \\\ 那么 \n 应当为 \\n

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@criyle
Comment options

Answer selected by 21mw12
@21mw12
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants