Ruby 取出两数列中相同元素后,形成新的数列 2015/11/05 15292 array1 = [1, 3, 5, 6, 7, 9] array2 = [1, 4, 5, 6, 8, 9, 10, 20] p array1 & array2