mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 06:19:44 +08:00
@@ -232,7 +232,7 @@ func main() {
|
|||||||
`Join` 用于将元素类型为 string 的 slice 使用分割符号来拼接组成一个字符串:
|
`Join` 用于将元素类型为 string 的 slice 使用分割符号来拼接组成一个字符串:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
Strings.Join(sl []string, sep string)
|
strings.Join(sl []string, sep string) string
|
||||||
```
|
```
|
||||||
|
|
||||||
示例 4.18 [strings_splitjoin.go](examples/chapter_4/strings_splitjoin.go)
|
示例 4.18 [strings_splitjoin.go](examples/chapter_4/strings_splitjoin.go)
|
||||||
|
Reference in New Issue
Block a user