單項(xiàng)選擇題


輸出結(jié)果為:()

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


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題print(list(enumerate([1,2])))輸出結(jié)果為:()

A.[[0,1],[1,2]]
B.[(0,1),(1,2)]
C.[1,2]
D.[0,1,1,2]

2.單項(xiàng)選擇題

x=[1,2,3,2,3]
x.pop()
print(x)
輸出結(jié)果為:()

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

3.單項(xiàng)選擇題print(list(zip([1,2],[3,4])))輸出結(jié)果為:()

A.[1,2,3,4]
B.[(1,2),(3,4)]
C.[(1,3),(2,4)]
D.報(bào)錯(cuò)

4.單項(xiàng)選擇題print({1,2,3}-{3,4,6})輸出結(jié)果為:()

A.{-2,-2,-3}
B.{2,2,3}
C.{1,2}
D.報(bào)錯(cuò)

5.單項(xiàng)選擇題


輸出結(jié)果為:()

A.[2,4,6,8]
B.[5,5,5,5]
C.10
D.報(bào)錯(cuò)