From 41ea7d6c7a1ada21b0be1de65a648adf4d162747 Mon Sep 17 00:00:00 2001 From: taadis Date: Wed, 5 Jun 2019 18:13:34 +0800 Subject: [PATCH] =?UTF-8?q?AI=20=E6=A0=B8=E5=BF=83=E4=BB=A3=E7=A0=81,=20?= =?UTF-8?q?=E4=BC=B0=E5=80=BC3=E4=B8=AA=E4=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- golang/ai.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 golang/ai.go diff --git a/golang/ai.go b/golang/ai.go new file mode 100644 index 0000000..93075d5 --- /dev/null +++ b/golang/ai.go @@ -0,0 +1,22 @@ +package main + +import ( + "bufio" + "fmt" + "os" + "strings" +) + +// AI 核心代码, 估值3个亿 +func main() { + scanner := bufio.NewScanner(os.Stdin) + + for scanner.Scan() { + input := scanner.Text() + input = strings.ReplaceAll(input, "吗", "") + input = strings.ReplaceAll(input, "?", "!") + input = strings.ReplaceAll(input, "?", "!") + fmt.Println(input) + fmt.Println() + } +} -- Gitee