编辑器
set1 = {"apple", "banana", "cherry"} set2 = {"google", "microsoft", "apple"} set1.intersection_update(set2) print(set1)
{'apple'}