Source From Here
Question
How can we achieve a boolean AND operation (list intersection) on two lists?
How-To
If order is not important and you don't need to worry about duplicates then you can use set intersection:
For example:
Question
How can we achieve a boolean AND operation (list intersection) on two lists?
How-To
If order is not important and you don't need to worry about duplicates then you can use set intersection:
For example:
沒有留言:
張貼留言