Leetcode 349. Intersection of Two Arrays

送分题

class Solution(object):
    def intersection(self, nums1, nums2):
        """
        :type nums1: List[int]
        :type nums2: List[int]
        :rtype: List[int]
        """
        ans=list(set(nums1)&set(nums2))
        return ans
原文地址:https://www.cnblogs.com/zywscq/p/10508436.html