python_string
Mon May 28 15:25:42 UTC 2007
Mon May 28 15:25:42 UTC 2007
String method
#1 문자열 찾기
upper(), lower() 대소문자 변환
find(s),rfind(s), index(s) 문자열을 찾으면 시작 인덱스 반환, 없으면 -1, index는 없으면 Value error를 발생시킴
find는 왼쪽을 시작위치로, rfind는 오른쪽을 시작위치로 (검색시작위치 지정가능)
#2 편집및 치환
rstrip(), lstrip(), strip() 공백제거
replace(a,b) 문자열 치환
split(str) 문자열을&n
joker