摘要:
Day 03 strings 和 strconv 的使用 strings.HasPrefix(str string, prefix string) bool :判断字符串 str 是否以 prefix 开头 strings.HasSuffix(str string, suffix string) b 阅读全文
摘要:
简单版 package main import ( "fmt" "io" "net/http" "os" "strconv" ) func HttpGet(url string) (result string, err error) { resp, err1 := http.Get(url) if 阅读全文
摘要:
package main import ( "fmt" "strconv" ) func main() { // 把数字转换成字符串类型 i1 := int32(97) fmt.Printf("i1 = %d, %T, %#v,%#v \n",i1,i1,i1,string(i1)) ret2 := 阅读全文