• 2021-04-14
    【单选题】假设要统计一段英文每个单词出现的次数,可以使用一个字典类型 counts={},统计单词出现的次数可采用以下代码()
    A. counts[word] = count[word] + 1 B. counts[word] = count.get(word,0) + 1 C. counts[word] = 1 D. C. counts[word] = count.get(word,1) + 1