Python a function package, find text in English string numbers subscripts

ABC DEF (STR, Data): 
COUNT = []
numMax = 0
for A in Range (len (STR)):
IF A == 0:
TEMP = str.find (Data, numMax, len (STR))
the else:
TEMP str.find = (Data, numMax +. 1, len (STR))
IF TEMP = -1:!
for I in Range (len (Data)):
count.append (TEMP + I)
elif numMax == 0 and COUNT! None =:
return -1
IF numMax == max (COUNT):
return COUNT
numMax = max (COUNT)
# Print (abc (the iNPUT ( "Please enter a sequence to look for the foundation:"), input ( "enter the Find what:" )))
Print (abc ( "abcfgggabjfhgfabc", "abc"))

Guess you like

Origin www.cnblogs.com/pygo/p/12015839.html