代码 s=input() m=input() count=0 for i in range(len(m)-1,-1,-1): if m[i] == s: print("index = %d"%i) count+=1 break if count == 0: print("Not Found")