Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/r 和 /n 的区别以及 node 中的换行符号 #95

Open
nmsn opened this issue Jun 26, 2023 · 2 comments
Open

/r 和 /n 的区别以及 node 中的换行符号 #95

nmsn opened this issue Jun 26, 2023 · 2 comments
Labels

Comments

@nmsn
Copy link
Owner

nmsn commented Jun 26, 2023

No description provided.

@nmsn nmsn added the Node label Jun 26, 2023
@nmsn
Copy link
Owner Author

nmsn commented Jun 26, 2023

os.EOL 获取不同系统的换行符号

\n on POSIX
\r\n on Windows

@nmsn nmsn changed the title node 中的换行符 /r 和 /n 的区别以及 node 中的换行符号 Jun 27, 2023
@nmsn
Copy link
Owner Author

nmsn commented Jun 27, 2023

/n (newline) 换行符 另起一行,对应的 ASCII 为 10 缩写 LF
/r (return) 回车符,回到一行的开头,对应 ASCII 值为 13 缩写 CR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant