Go语言中文网 为您找到相关结果 1

go语言reversevowelsofastring

Go语言ReverseVowelsofaString 主要是判断是不是元音字符,没啥难度,记得实际写的时候要去掉魔鬼数字 package main import ( "fmt" ) //注意考虑大小写 func isVowel(vowel rune) bool { if vowel == 97 || vowel == 97-32 { return true } if vowel == 101 || vowel == 101-32 { return true } if vowel == 105 || vowel == 105-32 { return true } if vowel == 111 || vowel == 111-32 { return true } if vowel == 117...阅读全文

博文 2016-07-18 15:00:45 qq_15437667