meta data for this page
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
python:str [2021/03/12 13:00] moonrepeat 만듦 |
python:str [2021/03/18 12:52] (현재) moonrepeat |
||
---|---|---|---|
줄 1: | 줄 1: | ||
- | ==== Python Str ==== | + | ====== Python Str ====== |
- | 유용한 메소드 | + | ^ String Calculaction ^ String Search ^ Number / Character ^ Space / Strip ^ Encoding / Decoding ^ Lower / Upper ^ Split / Join / Fill | |
- | + | | len() | startswitch() | isalnum() | lstrip() | encode() | islower() | split() | | |
- | || String Calculaction || String Search || | + | | min() | endswitch() | isalpha() | rstrip() | decode() | isupper() | splitlines() | |
+ | | max() | find() | isdigit() | strip() | | lower() | replace() | | ||
+ | | count() | rfind() | isnumeric() | isspace() | | upper() | join() | | ||
+ | | | index() | isdecimal() | center() | | swapcase() | zfill() | | ||
+ | | | rindex() | | | | istitle() | ljust() | | ||
+ | | | | | | | title() | rjust() | | ||
+ | | | | | | | capitalize() | | | ||
+ | ===== String Calulaction ===== | ||
+ | - len(//**str**//) : 문자열 길이 | ||
+ | * <code> | ||
+ | >>> a = 'Hello World' | ||
+ | >>> len(a) | ||
+ | 12 | ||
+ | </code> | ||
+ | - min(//**str**//) : 문자열 str 내 문자 또는 숫자의 최소값 | ||
+ | * <code> | ||
+ | </code> | ||
+ | - max(//**str**//) : 문자열 str 내 문자 또는 숫자의 최대값 | ||
+ | * <code> | ||
+ | </code> | ||
+ | - count(//**str**//, [//begin index//, //end index//]) : 지정된 문자열에서 str이 몇개 있는지 개수 반환(시작점, 끝점 위치 설정 가능) | ||
+ | * <code> | ||
+ | </code> | ||
+ | ===== String Search ===== | ||
+ | ===== Number / Character ===== | ||
+ | ===== Space / Strip ===== | ||
+ | ===== Encoding / Decoding ===== | ||
+ | ===== Lower / Upper ===== | ||
+ | ===== Split / Join / Fill ===== |