set 方法

一 intersection() 方法用于获取两个或多个集合之间的交集

使用方式1

 

使用方式2

 

posted @ 2025-01-10 14:35  tslam  阅读(10)  评论(0)    收藏  举报