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

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


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題

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]

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

A.[1,2,3,4]
B.[(1,2),(3,4)]
C.[(1,3),(2,4)]
D.報錯

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

A.{-2,-2,-3}
B.{2,2,3}
C.{1,2}
D.報錯

4.單項選擇題


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

A.[2,4,6,8]
B.[5,5,5,5]
C.10
D.報錯

5.單項選擇題list(map(lambdax,y:x*y,[1,2,3],[4,5,6]))輸出結(jié)果為:()

A.[6,10,12]
B.[4,10,18]
C.[5,7,9]
D.報錯