判断题
偏易
#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。