面试题答案
一键面试def process_list(lst):
new_lst = []
index = 0
while index < len(lst):
num = lst[index]
if num % 2 == 0:
new_lst.append(num ** 2)
else:
new_lst.append(num ** 3)
index += 1
return new_lst