4

麻烦问一下 println 和 print\n 底层有区别吗

 2 years ago
source link: https://www.v2ex.com/t/846160
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Go 编程语言

麻烦问一下 println 和 print\n 底层有区别吗

  saleacy · 12 小时 35 分钟前 via Android · 1703 次点击
9 条回复    2022-04-11 11:57:26 +08:00

pennai      12 小时 33 分钟前   1

啥语言啊?开源的你直接点击源代码看看就行了

neoblackcap      9 小时 12 分钟前   1

当然有区别,你自己手动输入换行符可是不会根据平台不一样换行的。
Windows 下,换行可是 CRLF(\r\n)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK