单选题

现有字符串S = "No mountain is more high than one." ,现在需要计算并输出字符串中'o'在S出现的次数,正确的语句是?( )

A

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

B

print(S.index('o'))

C

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

D

print(S.count('o'))

赣ICP备20007335号-2