输入任意两个字符串,从第一个字符串中删除第二个字符串中的所有字符。如:输入’hello world!’ 和 ‘aeiou’,输出’hll wrld!’。
收起
望采纳!谢谢
str1 = input() str2 = input() for one_char in str2: if one_char in str1: str1 = str1.replace(one_char, "") print(str1)
报告相同问题?