A、B 中相同元素:print(set(A)&set(B)) A、B 中不同元素:print(set(A)^set(B)) 相关文章: 2022-12-23 2021-11-28 2021-07-07 2022-12-23 2022-12-23 2021-04-26 2022-02-03