现有字符串S = "No mountain is more high than one." ,现在需要计算并输出字符串中'o'在S出现的次数,正确的语句是?( )
print(S.find('o',1))
print(S.index('o'))
print(S.index('o',0,len(S)))
print(S.count('o'))
微信小程序
微信扫一扫体验
微信公众账号
微信扫一扫加关注
发表评论 取消回复