goland 字符串拼接

180it 2021-10-03 AM 1777℃ 0条
package main

import (
    "fmt"
    "strings"
)

func main() {

    //用爱心进行拼接
    a1 := strings.Join([]string{"i","love","you"},"❤")
    fmt.Println(a1)                                //i❤love❤you



}
支付宝打赏支付宝打赏 微信打赏微信打赏

如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!

标签: none

goland 字符串拼接