判断题

某 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 错误
赣ICP备20007335号-2