题库 Python题库 题目列表 现有字符串S = "No mountain is more high than...
单选题

现有字符串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'))

题目信息
2023年 6月 选择题
-
正确率
0
评论
32
点击