go 字符串拼接
package main
import "fmt"
func main() {
var a int = 5
var b int = 6
var c = a + b // 数字拼接
fmt.Println("c=",c)
var d = "hello"
var e = " world"
var f = d + e // 字符串拼接
fmt.Println("f=",f)
}
package main
import "fmt"
func main() {
var a int = 5
var b int = 6
var c = a + b // 数字拼接
fmt.Println("c=",c)
var d = "hello"
var e = " world"
var f = d + e // 字符串拼接
fmt.Println("f=",f)
}