创建列表list=[1,2,3,4,5],观察下列选项,哪一个选项可以对列表list进行访问并且返回值为[1,2,3]? A: list[1:3] B: list[0:4] C: list[0:3] D: list[1:4]
创建列表list=[1,2,3,4,5],观察下列选项,哪一个选项可以对列表list进行访问并且返回值为[1,2,3]? A: list[1:3] B: list[0:4] C: list[0:3] D: list[1:4]
表达式list(range______ )的值为([0,<br/>1, 2, 3, 4])。
表达式list(range______ )的值为([0,<br/>1, 2, 3, 4])。
下列代码运行结果是? a = map(lambda x: x**3, [1, 2, 3]) list(a)
下列代码运行结果是? a = map(lambda x: x**3, [1, 2, 3]) list(a)
已知列表ls = [7,"Python", [8,"LIST"], 9],则ls[2][-1][3]的运行结果是( ) A: [8,"LIST"] B: "T" C: "LIST" D: "Python"
已知列表ls = [7,"Python", [8,"LIST"], 9],则ls[2][-1][3]的运行结果是( ) A: [8,"LIST"] B: "T" C: "LIST" D: "Python"
list=[1,2,3],list[-1]的值为() A: 1 B: 3 C: 2 D: []
list=[1,2,3],list[-1]的值为() A: 1 B: 3 C: 2 D: []
表达式 list(map(lambda x: x+5, [1, 2, 3, 4, 5])) 的值为_________。
表达式 list(map(lambda x: x+5, [1, 2, 3, 4, 5])) 的值为_________。
以下程序的输出结果是:list = ["1","3" ,"5"]def app(x):list. append(x)app( "7" )print( list)} A: ['1','3','5'] B: ['1','3','5','7'] C: ['7'] D: "1,3,5,7"
以下程序的输出结果是:list = ["1","3" ,"5"]def app(x):list. append(x)app( "7" )print( list)} A: ['1','3','5'] B: ['1','3','5','7'] C: ['7'] D: "1,3,5,7"
Which one below is not included in the “Word of the Year” list? _______
Which one below is not included in the “Word of the Year” list? _______
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
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
中国大学MOOC: 表达式list(range(1, 10, 3)) == [1, 4, 7]的值为______
中国大学MOOC: 表达式list(range(1, 10, 3)) == [1, 4, 7]的值为______