25、(多选)阅读下面代码,说法正确的是?
- 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))
A、输出的结果中全是正数
B、输出的结果中含有数字0
C、输出的结果全是偶数
D、输出的结果中重复出现了两次的数是8