首页 / 客观题库
下列代码运行结果正确的是:
import heapq
nums = [7, 2, 5, 3, 9, 1]
h = []
for n in nums:
heapq.heappush(h, n)
res = []
while len(h) > 0:
res.append(heapq.heappop(h))
print(res)
A [1, 2, 3, 5, 7, 9]
B [9, 7, 5, 3, 2, 1]
C [1, 3, 2, 5, 7, 9]
D [2, 1, 3, 5, 7, 9]
18213408360
密码必须包含数字、字母和特殊字符
错误.in文件下载
错误.out文件下载