代码如下

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);
        }
    }
}
最后修改:2020 年 06 月 30 日
如果觉得我的文章对你有用,请随意赞赏