最佳答案
有没有一种方法可以比较两个数组,并显示它们的共同之处?
array1 = ["pig", "dog", "cat"]
array2 = ["dog", "cat", "pig", "horse"]
我要输入什么来说明 ["pig", "dog", "cat"]
在这两个数组之间是通用的?