📜  python3中设置.intersection()操作的解决方案——Python代码示例

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

代码示例1
# Enter your code here. Read input from STDIN. Print output to STDOUT
num1, st1, num2, st2 = (set(input().split()) for i in range(4))
print(len(st1.intersection(st2)))