s = input()
str1 = input()
if s in str1:
print('index = {}'.format(str1.rindex(s)))
else:
print('Not Found')
浙大版《Python 程序设计》题目集 第3章-4 查找指定字符 (15分)
猜你喜欢
转载自blog.csdn.net/weixin_42229583/article/details/104573225
今日推荐
周排行