摘要:
package main import "fmt" func main(){ var str string= Bytes("Google") fmt.Println(str) } func Bytes(s string) string { r :=make([]byte,len(s)) for i
阅读全文
posted @ 2022-05-31 10:35
kevin_yang123
阅读(41)
推荐(0)
编辑
摘要:
package main import "fmt" func main(){ var a,b string a,b =slice("abc",1) fmt.Println(b,a) } func slice(a string, b int) (string,string) { var m[]byte
阅读全文
posted @ 2022-05-31 10:13
kevin_yang123
阅读(67)
推荐(0)
编辑