st = 4자랑4랑하자라는 문자열 가져올때,st.find('4')걸면 = 1이 나오겠죠? 첫번째 4인두번째 4 자리인 4가 나오게 하려면어떻게 걸어야 하나요?st.find('4')[1] 이렇게되 안되던데
findall
st[1:].find('4')
으잉..둘다 아닌것 같은데
regex
l = []; i = -1; while(1): i = st.find('4', i+1) ; if i>=0 : append(i) ; else : break 옛다