查找指定字符

a = input()
b = input()
c = b.rfind(a)
if c==-1:
    print("Not Found")
else:
    print("index = {:d}".format(c))

 

posted @ 2020-04-14 22:27  林晓婷  阅读(265)  评论(0)    收藏  举报