Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请有人帮忙。
我想根据另一个列表过滤项目列表。
我有一个电子设备型号列表。
我有并添加功能,允许用户将模型添加到列表中。
在 Add 函数中,我有一个组合框,其中包含数据库中所有可能的模型。
我希望能够过滤组合框中的项目,以确保用户无法选择列表中已经存在的模型。
我以为我可以将其作为 Lambda 表达式来执行,但似乎没有可用的 NOT IN 函数?
您是否尝试过使用except方法?
通过使用默认相等比较器比较值来产生两个序列的集合差。