2条回答 默认 最新
- 於黾 2021-10-13 11:05关注
s=input() a=input() i=s.find(a) if i<0: print('Not Found') else: print('index = {}'.format(i))
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
s=input()
a=input()
i=s.find(a)
if i<0:
print('Not Found')
else:
print('index = {}'.format(i))