text1,text2=input(),list(input())
[text2.remove(i) for p in text1 for i in text2 if i==p or i==p.lower()]
if '+' in text1:
text2=[p for p in text2 if p !=p.upper() or p in ',._-+' or p.isdigit() ]
print(''.join(text2))
为啥这个测试点一过不去啊.....
text1,text2=input(),list(input())
[text2.remove(i) for p in text1 for i in text2 if i==p or i==p.lower()]
if '+' in text1:
text2=[p for p in text2 if p !=p.upper() or p in ',._-+' or p.isdigit() ]
print(''.join(text2))
为啥这个测试点一过不去啊.....