单选题

在如下Python代码中,假设变量zen代表很多字符此处仅为示例,代码实现按小写字母频次升序,如频次相同则按字符ASCII升序输出,横线处应填入是(   )。

A

alphaCount[c] += 1

B

alphaCount[c.lower()] += 1

C

alphaCount[c.lower] = alphaCount.get(c.lower,0) + 1

D

alphaCount[c.lower()] = alphaCount.get(c.lower(),0) + 1

赣ICP备20007335号-2