以下代码的输出结果是()。S=[4,2,9,1]S.insert(2,3)Print(s)
(A)[4,2,9,2,1]
(B)[4,3,2,9,1]
(C)[4,2,3,9,1]
(D)[4,2,9,1,2,3]
查看解析
参考答案
继续答题:下一题
更多二级Python试题
- 1关于以下代码的描述中,错误的是()。Deffunc(a,b):C=a**2+bB=aReturncA=10B=100C=func(a,b)+a
- 2以下程序的输出结果不可能的选项是()。ImportrandomLs=[a,b,c,d]Print(random.sample(ls,2))
- 3关于以下代码的描述中,错误的是()。Deffact(n):S=1Foriinrange(1,n+1):S*=iReturns
- 4以下代码的执行结果是()。X,y,z=3,4,5Print(x={1},y={0},z={0}.format(x,y,z))
- 5以下关于函数优点的描述中,错误的是()。
- 6以下关于分支和循环结构的描述中,错误的是()。