计算机二级

表达式[1,2,3].count(4)的值为_______________。

题目

表达式[1,2,3].count(4)的值为_______________。

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

表达式 list(str([1,2,3])) == [1,2,3] 的值为______________。


['1', '2', '3']

第2题:

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

第3题:

表达式 list(str([1,2,3])) == [1,2,3] 的值为


['1', '2', '3']

第4题:

表达式{1,2,3}&{2,3,4}的值为___________。


正确答案:{2,3}

第5题:

表达式set([1,2,3])=={1,2,3}的值为____________。


正确答案:True

第6题:

表达式list(map(list,zip(*[[1,2,3],[4,5,6]])))的值为________________。


正确答案:[[1,4],[2,5],[3,6]]

第7题:

表达式{1,2,3}|{3,4,5}的值为_____________________。


正确答案:{1,2,3,4,5}

第8题:

表达式list(str([1,2,3]))==[1,2,3]的值为______________。


正确答案:False

第9题:

已知有函数定义defdemo(*p):returnsum(p),那么表达式demo(1,2,3)的值为______、表达式demo(1,2,3,4)的值为_________。


正确答案:6、10