📜  在 python3 中设置 .difference() 操作 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:00.704000             🧑  作者: Mango

代码示例1
# Enter your code here. Read input from STDIN. Print output to STDOUT
n1 = int(input())
set_1 = set(map(int,input().split()))
n2 = int(input())
set_2 = set(map(int,input().split()))
print(len(set_1-set_2))