文章目录 题目python3 解法朴素解法哈希解法 题目 python3 解法 朴素解法 # 朴素做法 s1 = input() s2 = input() for i in s1: if i not in s2: print(i,end='') 哈希解法 a = input() b = set([i for i in input()]) for i in a: if i not in b: print(i, end='')