From 05110a70d43cdfb743695f41abcbf1a0c567fa75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=80=E6=BA=90oschina?= <115889198@qq.com> Date: Wed, 27 May 2020 11:25:12 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E4=BB=B7=E5=80=BC=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E4=BA=BF=E7=9A=84=E4=BA=BA=E5=B7=A5=E6=99=BA=E8=83=BD.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...72\345\267\245\346\231\272\350\203\275.md" | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 "\344\273\267\345\200\274\344\270\200\344\270\252\344\272\277\347\232\204\344\272\272\345\267\245\346\231\272\350\203\275.md" diff --git "a/\344\273\267\345\200\274\344\270\200\344\270\252\344\272\277\347\232\204\344\272\272\345\267\245\346\231\272\350\203\275.md" "b/\344\273\267\345\200\274\344\270\200\344\270\252\344\272\277\347\232\204\344\272\272\345\267\245\346\231\272\350\203\275.md" new file mode 100644 index 0000000..4842c13 --- /dev/null +++ "b/\344\273\267\345\200\274\344\270\200\344\270\252\344\272\277\347\232\204\344\272\272\345\267\245\346\231\272\350\203\275.md" @@ -0,0 +1,19 @@ + +``` +import java.util.Scanner; + +public class AiMain { + public static void main(String[] args) { + Scanner sc = new Scanner(System.in); + String str; + while (true) { + str = sc.next(); + str = str.replace("吗", ""); + str = str.replace("?", "!"); + str = str.replace("? ", "! "); + System.out.println(str); + } + } +} +``` +![输入图片说明](https://images.gitee.com/uploads/images/2020/0527/112250_3d559028_123301.png "屏幕截图.png") \ No newline at end of file -- Gitee