• 2022-06-12
    假设my_list=['a','b','c','d','e','f','g'],那么my_list[3:5]获取的结果是____,my_list[:5]获取的结果是[br][/br]____,my_list[3:]获取的结果是____,my_list[ : :2]获取的结果是____,my_list[::-1]获取的结果是____,my_list[-2:-5]获取的结果是____。
  • 'd','e'#'a','b','c','d','e'#'d','e','f','g'#'a','c','e','g'#'g','f','e','d','c','b','a'#[]

    内容

    • 0

      dict={'a':1, 'b':2, 'c':3} str=list(dict.keys())[list(dict.values()).index(2)] print(str) 输出结果是( ) A: a B: C: c D: 2

    • 1

      Python语句pint(type([]))的输出结果是() 未知类型:{'options': ["[ class 'tuple‘]", "[class'dict']", "[ class 'set]", "[class 'list']"], 'type': 102}

    • 2

      ls = [3.5, "Python", [10, "LIST"], 3.6],ls[2][ –1][1]的运行结果是‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬ A: L B: I C: P D: Y

    • 3

      59ls=[3.5,"Python",[10,"LIST"],3.6],ls[2][–1][1]的运行结果是‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‫‫‪‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‪‪ A: I B: Y C: L D: P

    • 4

      59ls=[3.5,"Python",[10,"LIST"],3.6],ls[2][–1][1]的运行结果是‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‫‫‪‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‪‪ A: I B: Y C: L D: P