输入两个字符串,从第一字符串中删除第二个字符串中所有的字符。
例如,输入”They are students.”和”aeiou”,则删除之后的第一个字符串变成”Thy r stdnts.”
- 输入描述:
每个测试输入包含2个字符串 - 输出描述:
输出删除后的字符串 - 示例1:
输入:
They are students.
aeiou
输出:
Thy r stdnts.
def fun_delete(s, target):
res = ""
target = list(target)
for i in s:
if i not in target:
res += i
return res
if __name__ == '__main__':
s = input()
target = input()
res = fun_delete(s, target)
print(res)