摘要:
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 阅读全文
摘要:
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 阅读全文