![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
[单选题]
已知列表lst=[1,'a',2,'b',3,'c'],则表达式lst[0:1]的值为()
A.1
B.[1]
C.[1,'a']
D.[1,a]
查看答案
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
A.1
B.[1]
C.[1,'a']
D.[1,a]
A.len(lst)
B.len(lst[2])
C.lst[1].index('t')
D.lst.count('t')
A.lst的值为 [1,['d'], 2, 'b', 3, 'c']
B.lst的值为 [1, 'd', 2, 'b', 3, 'c']
C.lst的值为 [1, 'd', 'b', 3, 'c']
D.报错
A.[i[::-1] for i in lst]
B.[(i[1],i[0]) for i in lst]
C.[(v,k) for k,v in lst]
D.[i[1]+i[0] for i in lst]
A.for i in lst: i=i**2 print(lst)
B.for i in range(0,3): lst[i]**=2 print(lst)
C.for i in range(0,3): lst[i]=i**2 print(lst)
D.for i in range(0,3): lst[i]+=lst[i] print(lst)