第15533题 判断
判断该Python程序段的运行输出结果是否为2

某Python程序段如下:

s = "Errors should never pass silently."
d = {}
for ch in s:
    if ch in d:
        d[ch] += 1
    else:
        d[ch] = 1
print(d["e"])

运行该程序段,输出结果是2。

A

正确

B

错误