第17132题
统计给定字符串中字符'e'出现次数的正确Python语句是哪项?

现有字符串S = "Where there's a will there's a way.",计算并输出字符串中'e'在S出现的次数,正确的语句是?

D
print(S.index('e',0,len(S)))
A
print(S.find('e',1))
B
print(S.index('e'))
C
print(S.count('e'))
提交0次 正确率0.00%
答案解析