第26431题 单选题
Python统计小写字母频次的代码横线处应填入的是?

实现按小写字母频次升序,如频次相同则按字符ASCII升序输出,对应代码如下:

zen = "Beautiful is better than ugly"
alphaCount = {}
for c in zen:
    ________________________
print(sorted(alphaCount.items(), key = lambda x:(x[1],ord(x[0]))))
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析