• 2022-05-30
    补全代码,使输出结果为True Truea = 1b = "2"list = [1,2,3,4,5]print(a _____ list,b ____ list)
  • in# not in

    内容

    • 0

      以下代码的输出结果是(_____)。L1 =['abc', ['123','456']] L2 = ['1','2','3'] print(L1 > L2) A: False B: True C: TypeError: '>' not supported between instances of 'list' and 'str' D: 1

    • 1

      列表list = [1,2,3,4,5],下列选项中不能访问list末尾元素语句的是( )。 A: list[4] B: list[-1] C: list[len(list)-1] D: list.tail()

    • 2

      list=["a",1,"b",2]del list[1:3]print(list) A: ('a', 2) B: ['a'] C: ['a', 2] D: ['a', 'b']

    • 3

      表达式 list(map(lambda x: x+5, [1, 2, 3, 4, 5])) 的值为_________。

    • 4

      下面代码的输出结果是‬() vlist = list(range(5)) print() A: [0, 1, 2, 3, 4] B: 0;1;2;3;4; C: 0,1,2,3,4, D: 0 1 2 3 4