meta data for this page
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
python:str [2021/03/17 12:53] 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 | | ^ String Calculaction ^ String Search ^ Number / Character ^ Space / Strip ^ Encoding / Decoding ^ Lower / Upper ^ Split / Join / Fill | | ||
| len() | startswitch() | isalnum() | lstrip() | encode() | islower() | split() | | | len() | startswitch() | isalnum() | lstrip() | encode() | islower() | split() | | ||
줄 11: | 줄 9: | ||
| | | | | | title() | rjust() | | | | | | | | title() | rjust() | | ||
| | | | | | capitalize() | | | | | | | | | 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 ===== |