浙大版《Python 程序设计》题目集 第3章-4 查找指定字符 (15分)

s = input()
str1 = input()
if s in str1:
    print('index = {}'.format(str1.rindex(s)))
else:
    print('Not Found')
发布了33 篇原创文章 · 获赞 0 · 访问量 262

猜你喜欢

转载自blog.csdn.net/weixin_42229583/article/details/104573225