自定义函数题:写一函数将字符串中的指定字符全部替换成另一字符
收起
正则替换啊c的不知道,java的,str是原字符串,o是需要替换的字符,n是替换的字符
str.replaceAll(o ,n);
报告相同问题?