程序如下: import re str1=input() str2=input() str3=input() str4=re.sub(str1,str2,str3) print(str4) 运行结果如下: 3008