代码如下
package xk.org; import java.util.Scanner; // 估值一个亿的 AI核心代码 public class hello { public static void main(String[] args) throws Exception { 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); } } }