python求助,只ac了2个
查看原帖
python求助,只ac了2个
965736
xiuwenjuan_22333楼主2023/3/18 12:47

s0=input().lower() str=list(map(str,input().lower().split())) t=str.count(s0) if t==0: print(-1) else: i=str.index(s0) print(f"{t} ",end="") print(i)

2023/3/18 12:47
加载中...