字符统计

课程:golang · 编程练习

Go编程练习 - 字符统计

练习内容

package main\n\nimport (\n "fmt"\n "unicode"\n)\n\nfunc main() {\n text := "Hello World! How are you?"\n charCount := make(map[rune]int)\n\n for _, c := range text {\n if unicode.IsLetter(c) || unico