#303·lo

Intersect 函数返回了意料之外的结果

作者: Elephmoon创建于 2023年1月31日更新于 2026年3月27日

如果您有两个集合,第一个集合中有一个元素,第二个集合中有许多与第一个集合相似的元素,则 Intersect 将返回重复的 len(secondCollection) 次的 firstCollection 元素。在我看来,在这种情况下,Intersect 应返回 firstCollection 一次。