题解 | #大小写转换#
大小写转换
http://www.nowcoder.com/practice/4e089ee8966a4ed4b306f64e68d45264
package main
import (
"fmt"
"strings"
)
func main() {
var ch string
for {
if _, err := fmt.Scan(&ch); err == nil {
low := strings.ToLower(ch)
fmt.Println(low)
} else {
break
}
}
}