已知“a=[1,2,3]”且“b=a[:]”,则执行“a[1]=10”后,b的值为()。 A.[10,2,3]B.[1,10,3]C.[1,2,10]D.[1,2,3]

已知“a=[1,2,3]”且“b=a[:]”,则执行“a[1]=10”后,b的值为()。

A.[10,2,3]

B.[1,10,3]

C.[1,2,10]

D.[1,2,3]


相关考题:

已知“a=[1,[2,3]]”且“b=a[:]”,则执行“a[1]=10”后,b的值为()。 A、[1,10]B、[1,[2,3]]C、[1,[10,3]]D、报错

已知“a[1,[2,3]]”且“ba[]”,则执行“a[1][0]10”后,b的值为。() A、[1,10]B、[1,[2,3]]C、[1,[10,3]]D、报错

已知“a=[1,[2,3]]”且“b=a[:]”,则执行“a[1]=10”后,b的值为()。A.[1,10]B.[1,[2,3]]C.[1,[10,3]]D.报错

已知“a=[1,2,3]”且“b=a[:]”,则执行“a[1]=10”后,b的值为()。A.[10,2,3]B.[1,10,3]C.[1,2,10]D.[1,2,3]

已知“a=[1,2,3]”且“b=a”,则执行“a[1]=10”后,b的值为()。A.[10,2,3]B.[1,10,3]C.[1,2,10]D.[1,2,3]

2、已知“a=[1,2,3]”且“b=a[:]”,则执行“a[1]=10”后,b的值为()。A.[10,2,3]B.[1,10,3]C.[1,2,10]D.[1,2,3]

4、已知列表lst=[1,2,3],则执行表达式lst[1]='a'后:A.报错B.lst的值为[1,'a',3]C.lst的值为[1,a,3]D.lst的值为[1,2,3]

已知字典 dic={'a':[1,2,3],'b':[4,5,6],'c':[7,8,9]} ,则执行表达式 dic['a'].append(5) 后,表达式 len(dic['a']) 的值为______________

已知列表lst=[1,2,3],则执行表达式lst[1]='a'后:A.报错B.lst的值为[1,'a',3]C.lst的值为[1,a,3]D.lst的值为[1,2,3]