赞
踩
老样子,先看图,文末贴代码~
myeclipse版的
android studio 版的
是不是很简短啊?那么我贴一下源码吧~
- /**
- * AI核心代码 价值1个亿~
- * @author BillyLu
- *
- */
- 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://csdnimg.cn/release/blogv2/dist/pc/img/newCodeMoreWhite.png)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。