2869: 字符串最大跨距
摘要:解题思路:注意事项:参考代码:l = list(input().strip().split(","))a = l[0].find(l[1])b = l[0].rfind(l[2])if a != -1……
2869: 字符串最大跨距
摘要:解题思路:注意事项:参考代码:S, S1, S2 = map(str, input().split(","))
if S.find(S1) == -1 or S.find(S2) == -1:
……
字符串的函数和切片用的越来越熟练
摘要:解题思路:字符串反过来找到最近的注意事项:参考代码:l=list(input().split(','))ln=len(l[0])la=len(l[1])lb=len(l[2])if l……
2869: 字符串最大跨距
摘要:解题思路:注意事项:参考代码:s,s1,s2 = input().strip().split(",")
if s1 in s and s2 in s:
a = s.index(s1)
……