第30778题 单选题
以下Python代码运行后的输出结果是?
from collections import deque
d = deque([2, 3, 4])
d.appendleft(1)
d.append(5)
d.popleft()
d.pop()
d.extendleft([6, 7])
print(list(d))
A

[7, 6, 2, 3, 4]

B

[6, 7, 2, 3, 4]

C

[2, 3, 4, 6, 7]

D

[1, 2, 3, 4, 5]

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析