分享一段价值亿万的人工智能核心代码
如果喜欢的话就拿去吧,不用客气。>Ω<
package com.software.fanfan.ai;
import java.util.Scanner;
/**
* Created by 追梦1819 on 2019-01-25.
*/
public class AI {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String question;
while (true){
question = scanner.next();
question = question.replace("吗","");
question = question.replace("我","我也");
question = question.replace("?","!");
System.out.println(question);
}
}
}
看看运行结果啊: ![](https://img2018.cnblogs.com/blog/1183871/201904/1183871-20190422105625747-1577323949.png)
有了这段代码,从此,当上CEO,变成高富帅,迎娶白富美,走上人生巅峰,不再是梦想!哈哈@#¥!%¥#@!
本文来自博客园,作者:追梦1819,转载请注明原文链接:https://www.cnblogs.com/yanfei1819/p/10748923.html