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