1、交集
list(set(a).intersection(set(b)))
2、並集
list(set(a).union(set(b)))
3、差集
# b中有而a中沒有的
list(set(b).difference(set(a)))
1、交集
list(set(a).intersection(set(b)))
2、並集
list(set(a).union(set(b)))
3、差集
# b中有而a中沒有的
list(set(b).difference(set(a)))
繼續運行 ?* 回憶上次內容 上次使用shell環境中的命令 命令 作用 c