• 회원가입
  • 로그인
  • 구글아이디로 로그인

[string] Python - islower() 메서드 - 영문 문자열이 소문자뿐인지 체크. (= 이즈로우어)

1600  

islower() 예제 - 영문 문자열이 소문자뿐인지 체크.

 

txt = "홈짱닷컴 homzzang.com"

x = txt.islower()

print(x)

 

결과값: True

 

islower() 정의

 

영문 문자열이 소문자뿐이면 True 반환, 그 외는 False 반환.

※ 숫자, 기호, 공백, 비영문 문자 등은 체크 안 함.

 


cf.

isupper() 메서드 : 영문 문자열이 대문자뿐인지 체크.

 

 

islower() 구문

 

string.islower()

 


[매개변수]

 

없음.

 

 

islower() 예제

 

a = "Homzzang.com"

b = "homzzang.com 2012"

c = "홈짱닷컴 Homzzang.com"


print(a.islower()) # False

print(b.islower()) # True

print(c.islower()) # False

 

 


분류 제목
string Python - String Method (문자열 메서드) 종류
string Python - capitalize() 메서드 - 문자열의 첫글자만 대문자로 변환. (= capitalize…
string Python - casefold() 메서드 - 모든 문자열을 소문자로 변환. (= casefold메서드 = …
string Python - center() 메서드 - 지정 문자로 문자열 가운데 정렬. (= 센터)
string Python - count() 메서드 ★★ - 지정 문자열 포함 횟수. (= 카운트)
string Python - encode() 메서드 ★★ - 지정 인코딩 방식으로 문자열 인코딩. (= encode메서드…
string Python - endswith() 메서드 - 문자열이 지정 문자열로 끝나는지 체크. (= endswith메…
string Python - expandtabs() 메서드 - 문자열 내 Tab 간격 지정. (= 익스팬드탭스)
string Python - find() 메서드 ★ - 문자열 처음 발견 위치 찾기/검색 (= find메서드 = 파인드 …
string Python - format() 메서드 ★★ - 포맷된 문자열 삽입. (= format메서드 = 포맷) ※ …
string Python - format_map() 메서드 ★ - 문자열 안 지정 값의 형식 지정. (= 포맷맵)
string Python - index() 메서드 ★ - 지정 문자열 처음 위치 찾기/검색. (= 인덱스)
string Python - isalnum() 메서드 - 문자열이 알파벳과 숫자인지 체크. (= isalnum메서드 = …
string Python - isalpha() 메서드 - 문자열이 알파벳뿐인지 체크. (= 이즈알파)
string Python - isdecimal() 메서드 - 문자열이 decimal 숫자뿐인지 체크 (= isdecima…
string Python - isdigit() 메서드 - 문자열이 digit 숫자뿐인지 체크. (= 이즈디지트)
string Python - isidentifier() 메서드 - 문자열이 유효한 식별자인지 체크 (= isidentif…
string Python - islower() 메서드 - 영문 문자열이 소문자뿐인지 체크. (= 이즈로우어)
string Python - isnumeric() 메서드 - 문자열이 numeric 숫자뿐인지 체크. (= 이즈뉴메릭)
string Python - isprintable() 메서드 - 문자열이 모두 인쇄 가능한지 체크. (= isprinta…
1/3
목록
찾아주셔서 감사합니다. Since 2012