執行 ❯
擁有你自己的 Python 伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
set1 = {"apple", 1, "banana", 0, "cherry"} set2 = {False, "google", "microsoft", "apple", True} set3 = set1.intersection(set2) print(set3)
{假, 真, '蘋果'}