源代码
txt = "China is a great country. I love China!" x = txt.rindex("China") print(x)
运行结果