摘要: package main import ( "bufio" "fmt" "os" ) func main() { fmt.Print("Enter a grad:") reader := bufio.NewReader(os.Stdin) input, _ := reader.ReadString( 阅读全文
posted @ 2023-06-13 10:49 我是四五六 阅读(30) 评论(0) 推荐(0)
摘要: package main import ( "fmt" "strings" ) func main() { broken := "G# R#cks!" replacer := strings.NewReplacer("#", "o") fixed := replacer.Replace(broken 阅读全文
posted @ 2023-06-13 10:40 我是四五六 阅读(21) 评论(0) 推荐(0)