时间:2024-11-02 02:58:19
1、创建两个集合set1和set2。
3、打印intersection集合的值。
5、使用intersection方法获取多个集合的交集,将结果存储在变量intersection2中。
7、完整代码如下: