結果 : apply function to each element in array python