```go
package main
import (
"bytes"
"fmt"
)
func main() {
hello := "hello"
helloBytes := []byte( hello )
fmt.Println( helloBytes )
world := "world"
worldBytes := []byte( world )
fmt.Println( worldBytes )
helloWord := [][]byte{ helloBytes,worldBytes }
fmt.Println( helloWord )
helloWords := bytes.Join(helloWord,[]byte{})
fmt.Println( helloWords )
}
```
**运行结果如下:**
```go
[104 101 108 108 111]
[119 111 114 108 100]
[[104 101 108 108 111] [119 111 114 108 100]]
[104 101 108 108 111 119 111 114 108 100]
```
有疑问加站长微信联系(非本文作者))