📅  最后修改于: 2022-03-11 14:45:21.286000             🧑  作者: Mango
nums = [43, 20, 53, 12, 53, 5, 3, 2]
even = []
odd = []
for i in nums:
if (i % 2 == 0):
even.append(i)
else:
odd.append(i)
print("Even List: ", even)
print("Odd List: ", odd)