这样的,上面格式没调好
想太少
a="asdw" b="sd" c = a def delStr(a,b,c): for i in a: for j in b: if i==j: c = c.replace(i,"") return c
print(delStr(a,b,c))