golang数组拼接为字符串
import "strings" arr := []string{"hello","world"} arrString := strings.Join(arr , ";")
字符串分割为数组
https://www.yiibai.com/go/golang-string-functions.html
原文地址:https://www.cnblogs.com/xuweiqiang/p/12217351.html
时间: 2024-10-06 02:54:24
golang数组拼接为字符串
import "strings" arr := []string{"hello","world"} arrString := strings.Join(arr , ";")
字符串分割为数组
https://www.yiibai.com/go/golang-string-functions.html
原文地址:https://www.cnblogs.com/xuweiqiang/p/12217351.html