判断题 偏易
#4955

在Python中设定字符串 str="Happy new year", 则str.rfind('y')返回值为4。

在Python中设定字符串 str="Happy new year", 则str.rfind('y')返回值为4。

未登录也能判分,登录后才会记录
答案与解析
正确答案:错
解析

str="Happy new year", str.rfind('y')返回值为10。