string a;
a=console.readline();
a.replace("yes","no") //在VS中试了一下,发现结果并没有改变,结合其它的答案。
//把这句改为a=a.Replace("yes","no");就可以通过了.
console.writeln(a);
这是我找到的最短的代码.
http://zhidao.baidu.com/question/72013563.html
string a;
a=console.readline();
a.replace("yes","no") //在VS中试了一下,发现结果并没有改变,结合其它的答案。
//把这句改为a=a.Replace("yes","no");就可以通过了.
console.writeln(a);
这是我找到的最短的代码.
http://zhidao.baidu.com/question/72013563.html
转载于:https://www.cnblogs.com/haifeng19988/archive/2009/04/13/1434809.html