python求助为什么只有20
查看原帖
python求助为什么只有20
490940
Mrs_Panoan楼主2021/4/29 19:27

p=input().lower() t=input().lower() ls=t.split() lsls=[] for i in range(len(ls)): if p==ls[i]: lsls.append(i) else: continue if len(lsls)==0: print(-1) else: print(len(lsls),lsls[0])

2021/4/29 19:27
加载中...