转化为[]rune数组,然后range就行了,如 test :=([]rune) ("测试人") for idx,m := range test do{ fmt.Println(idx) fmt.Println(m); }
test :=([]rune) ("测试人") for idx,m := range test do{ fmt.Println(idx) fmt.Println(m); }
2,190
社区成员
914
社区内容
加载中
试试用AI创作助手写篇文章吧