返回子串最后一次出现的位置。
string.last_index(search)
search
Int:找不到时返回 -1。
Int
-1
text = 'hello BT' result = text.last_index(1)