链接: https://pan.baidu.com/s/1qZIwnz2 密码: n3fc
s = "hello jeapedkddu.com"
head = "je"
tail = "du"
ph = 0
pt = 0
i = 0
while i < len(s) - len(head) + 1: # <=, 20-2=18, 0~19 -> 0~18
j = 0
ch = 0
while j < len(head):
if s[i + j]
链接: https://pan.baidu.com/s/1qZIwnz2 密码: n3fc
s = "hello jeapedkddu.com"
head = "je"
tail = "du"
ph = 0
pt = 0
i = 0
while i < len(s) - len(head) + 1: # <=, 20-2=18, 0~19 -> 0~18
j = 0
ch = 0
while j < len(head):
if s[i + j]