Ready for your next trip? Trip.com offers cheap flights, hotels, car rentals, train tickets, holiday packages and many more. 24/7 Customer Service. Book now and save big....
Ready for your next trip? Trip.com offers cheap flights, hotels, car rentals, train tickets, holiday packages and many more. 24/7 Customer Service. Book now and save big....
文章浏览阅读7.8k次,点赞2次,收藏2次。数组(31-40)31、定义一个数组arr1内容为1-10var arr1=Array(1,2,3,4,5,6,7,8,9)32、使用filter过滤器,过滤出来偶数val b = Arr1.toArrayb.filter(_%2==0)33、使用map把arr1数组中每一个元素都取出来放到一个全新......