4、已知列表lst=[1,2,3],则执行表达式lst[1]='a'后:A.报错B.lst的值为[1,'a',3]C.lst的值为[1,a,3]D.lst的值为[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]
参考答案和解析
B
相关考题:
已知有列表x=[[1,2,3],[4,5,6]],那么表达式[[row[i]forrowinx]foriinrange(len(x[0]))]的值为___________________________。
The relation between the two paragraphs is that in the 2nd paragraph the author[A] challenges the viewpoint in the lst paragraph.[B] modifies his view expressed in the lst paragraph.[C] provides the reason for the argument in the lst paragraph.[D] further analyzes the issue discussed in the lst paragraph.
执行以下两条语句后,lst的结果是1. lst = [3, 2, 1]2. lst.append(lst)() A.[3, 2, 1, [3, 2, 1]]B.[3, 2, 1, […]],其中“…”表示无穷递归C.抛出异常D.[3, 2, 1, lst]
填空题已知有列表x=[[1,2,3],[4,5,6]],那么表达式[[row[i]forrowinx]foriinrange(len(x[0]))]的值为()。