📅  最后修改于: 2022-03-11 14:46:56.056000             🧑  作者: Mango
# Where in the text is the last occurrence of the string "casa"?
txt = "Mi casa, su casa."
x = txt.rfind("casa")
print(x)