题目:阅读下面代码,说法正确的是?
def transform(myls):
tmp_ls = []
for num in myls:
if num > 0 and num % 2 == 0:
tmp_ls.append(num ** 2)
elif num > 0 and num % 2 != 0:
tmp_ls.append(num + 3)
elif num < 0:
tmp_ls.append(num * -1)
return tmp_ls
ls = [-2,2,3,-4,0,5,6]
print(transform(ls))