假如用java的话就是楼上所说的了,刚才按照楼上的玩了一下, public class Replace { public static void main(String[] args) { String test = "GVPINVSCTGSPQCIKPCKDAGMRFGKCMNRKCHCTPK"; test = test.replaceAll("[IVLPCMAG]","1"); System.out.println(test); }}1111N1S1T1S1Q11K11KD111RF1K11NRK1H1T1K
public class Replace {
public static void main(String[] args) {
String test = "GVPINVSCTGSPQCIKPCKDAGMRFGKCMNRKCHCTPK";
test = test.replaceAll("[IVLPCMAG]","1");
System.out.println(test);
}}1111N1S1T1S1Q11K11KD111RF1K11NRK1H1T1K