执行给定Python程序段后,列表a的可能值是以下哪一项?
有如下Python程序段:
import random
a = [0] * 6
for i in range(1,6):
tmp = random.randint(5,24)
if tmp % 2 == 0 or i % 2 == 1:
a[i] = a[i-1] + tmp
print(a)
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析