题目内容

下面代码的输出结果是( )list1 = [1,2,3]list2 = [4,5,6]print(list1+list2)

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

查看答案
更多问题

下面代码的输出结果是( )list1 = []for i in range(1,11):list1.append(i**2)print(list1)

A. [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
B. [0,1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
C. [0,2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
D. 2, 4, 6, 8, 10, 12, 14, 16, 18, 20]

执行下面操作后,list2的值是()list1 = [4,5,6]list2 = list1list1[2] = 3

A. [4,5,3]
B. [4,3,6]
C. [4,5,6]
D. 都不正确

以下程序的输出结果是( )x = ['90','87','90']n = 90print(x.count(n))

A. 1
B. 2
C. 0
D. None

下面代码的输出结果是( )vlist = list(range(5))for e in vlist:print(e,end=",")

A. 0 1 2 3 4
B. 0,1,2,3,4,
C. 0,1,2,3,4
D. [0, 1, 2, 3, 4]

答案查题题库