Python/string
find
우리별3호
2019. 12. 23. 17:57
명령어
find
사용법
문자열a.find(문자열b)
결과
문자열a에서 문자열b를 찾아 offset을 리턴한다.
예시
In [1]: s='spam'
In [2]: s.find('pa')
1