单选题

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

A

print(S. find(' e' , 1) )

B

print(S. index(' e' ) )

C

print(S. count(' e' ) )

D

print(S. index(' e' , 0, len(S) ) )

赣ICP备20007335号-2