代码 # # # @param array int整型一维数组 # @return int整型一维数组 # class Solution: def reOrderArray(self , array ): # write code here list_odd = [] list_even = [] for i in array: if i % 2 == 0: list_even.append(i) else: list_odd.append(i) return list_odd + list_even