下面程序执行完毕后,最终的结果是?( )
a = [34, 17, 7, 48, 10, 5]
b = []
c = []
while len(a) > 0:
s = a.pop()
if s % 2 == 0:
b.append(s)
else:
c.append(s)
print(b)
print(c)
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析