讨论数量: 0
发起讨论
查看所有版本
Go 语言规范
/
Strings can be concatenated using the + operator or the += assignment operator:
s := "hi" + string(c)
s += " and good bye"
String addition creates a new string by concatenating the operands.
本文章首发在 LearnKu.com 网站上。