题目内容

如下程序的输出结果是:x = [90,87,93]y = [“zhang”, “wang”,“zhao”] print(list(zip(y,x)))

A. (‘zhang’, 90), (‘wang’, 87), (‘zhao’, 93)
B. [[‘zhang’, 90], [‘wang’, 87], [‘zhao’, 93]]
C. [‘zhang’, 90], [‘wang’, 87], [‘zhao’, 93]
D. [(‘zhang’, 90), (‘wang’, 87), (‘zhao’, 93)]

查看答案
更多问题

如下程序的输出结果是:L2 = [[1,2,3,4],[5,6,7,8]]L2.sort(reverse = True)print( L2)

A. [5, 6, 7, 8], [1, 2, 3, 4]
B. [[8,7,6,5], [4,3,2,1]]
C. [8,7,6,5], [4,3,2,1]
D. [[5, 6, 7, 8], [1, 2, 3, 4]]

如下程序的输出结果是:frame = [[1,2,3],[4,5,6],[7,8,9]]rgb = frame[::-1]print(rgb)

A. [[1, 2, 3], [4, 5, 6]]
B. [[7, 8, 9]]
C. [[1,2,3],[4,5,6],[7,8,9]]
D. [[7, 8, 9], [4, 5, 6], [1, 2, 3]]

关于Python的列表,描述错误的选项是

A. Python列表是包含0个或者多个对象引用的有序序列
B. Python列表用中括号[]表示
C. Python列表是一个能够修改数据项的序列类型
D. Python列表的长度不可变的

如下程序的输出结果是:ss = list(set(“jzzszyj”))ss.sort()print(ss)

A. [‘z’, ‘j’, ‘s’, ‘y’]
B. [‘j’, ‘s’, ‘y’, ‘z’]
C. [‘j’, ‘z’, ‘z’, ‘s’, ‘z’, ‘y’, ‘j’]
D. [‘j’, ‘j’, ‘s’, ‘y’, ‘z’, ‘z’, ‘z’]

答案查题题库