中国大学MOOC: 已知列表lst=[a,b,c,1],则以下不能够删除值为1的元素的表示式为:
lst.remove(-1)
举一反三
- 已知列表lst=['a','b','c',1],则以下不能够删除值为1的元素的表示式为: A: lst.remove(1) B: lst.pop() C: lst.remove(-1) D: lst.pop(3)
- 已知列表lst=['a','b','c',1],则以下不能够删除值为1的元素的表示式为 A: lst.pop() B: lst.pop(3) C: lst.remove(1) D: lst.remove(-1)
- 中国大学MOOC: 已知列表lst=[1,2,3,4,5],则以下不能在列表最后添加新的元素6的表达式有:
- 中国大学MOOC: 已知列表lst=[ [1,2,3],[4,5,6],[7,8,9] ],则表达式lst[1][1]的值为:
- 中国大学MOOC: 已知列表lst=[ [1,2,3],[4,5,6],[7,8,9] ],则表达式lst[1][1]的值为:
内容
- 0
中国大学MOOC: 已知列表lst=[ [1,2,3],[4,5,6],[7,8,9] ],则表达式lst[1][1]的值为:
- 1
中国大学MOOC: 已知列表lst=[ [1,2,3],[4,5,6],[7,8,9] ],则表达式lst[1][1]的值为:
- 2
中国大学MOOC: 已知列表lst=[ [1,2,3],[4,5,6],[7,8,9] ],则表达式lst[1][1]的值为:
- 3
中国大学MOOC: 已知列表lst=[ [1,2,3],[4,5,6],[7,8,9] ],则表达式lst[1][1]的值为:
- 4
已知列表lst=[1,2,3],则表达式lst[1:-1]的值为2 。