python 求两个list的交集

python 求两个list的交集

 

r = list(set(data2).intersection(set(data)))
print(r[0]*r[1])
posted @ 2020-12-26 13:10  bH1pJ  阅读(30)  评论(0编辑  收藏  举报