import random
a=[0,0,0,0,0,0]
for i in range(6):
x = random.randint(1, 10)
if i % 2 == 0:
a[i] = 2 * x + 1
elif x % 2 == 0:
a[i] = x // 2
else:
a[i] = x - 1
执行该程序段后,a[0]~a[5]各元素可能的值是( )
微信扫码预览、分享更方便