摘要: package main import ( "fmt" "strings" "strconv" ) func main () { str := "hello老美" //中文占三个字节 fmt.Println("str的长度为len=", len(str)) //长度为11 for i := 0; i < len(str); i++ { ... 阅读全文
posted @ 2019-06-28 09:11 zhangzhiping35 阅读(262) 评论(0) 推荐(0) 编辑