import random a=[0]*6
for i inrange(6):
a[i]=random. randint(1,5)*2+1
i=0
while i<5:
if a[i]>a[i+1]:
a[i],a[i+1]=a[i+1],a[i]
else:
i+=1
print(a)
a[i]+=1
以上程序运行后,列表a的值可能是:( )
微信扫码预览、分享更方便